File 0698-Fix-typos-and-improve-language.patch of Package erlang

From 689667b659c8f23669e5ba55b949f728b25ed385 Mon Sep 17 00:00:00 2001
From: preciz <barna.kovacs@tutanota.com>
Date: Sun, 28 Jul 2024 21:45:26 +0200
Subject: [PATCH] Fix typos and improve language

---
 erts/emulator/beam/beam_types.h                        |  2 +-
 erts/emulator/test/trace_sessions.erl                  |  2 +-
 erts/test/otp_SUITE.erl                                |  2 +-
 lib/compiler/internal_doc/cerl-notes.md                |  2 +-
 .../test/indent_SUITE_data/src/record_send_test.erl    |  2 +-
 .../test/r9c_SUITE_data/src/asn1/asn1rt_per.erl        |  2 +-
 lib/stdlib/uc_spec/README-UPDATE.txt                   |  2 +-
 lib/xmerl/test/xmerl_xsd_Sun2002-01-16_SUITE.erl       | 10 +++++-----
 8 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/erts/emulator/beam/beam_types.h b/erts/emulator/beam/beam_types.h
index 84368462c5..3d69fd0ce8 100644
--- a/erts/emulator/beam/beam_types.h
+++ b/erts/emulator/beam/beam_types.h
@@ -22,7 +22,7 @@
  * @description Basic type representation for BEAM instruction operands.
  * @file beam_types.h
  * 
- * While the compiler is good eliminating redundant type tests and simplifying
+ * While the compiler is good at eliminating redundant type tests and simplifying
  * instructions, we're limited by the available instructions and it's not
  * always worthwhile to add new variants.
  * 
diff --git a/erts/test/otp_SUITE.erl b/erts/test/otp_SUITE.erl
index d523a434f8..244f082ccd 100644
--- a/erts/test/otp_SUITE.erl
+++ b/erts/test/otp_SUITE.erl
@@ -228,7 +228,7 @@ call_to_size_1(Config) when is_list(Config) ->
     not_recommended_calls(Config, Apps, {erlang,size,1}).
 
 call_to_now_0(Config) when is_list(Config) ->
-    %% Applications that do not call erlang:now/1:
+    %% Applications that do not call erlang:now/0:
     Apps = [asn1,common_test,compiler,debugger,dialyzer,
             kernel,mnesia,observer,parsetools,reltool,
             runtime_tools,sasl,stdlib,syntax_tools,
diff --git a/lib/compiler/internal_doc/cerl-notes.md b/lib/compiler/internal_doc/cerl-notes.md
index 705fe8f42d..02186e64af 100644
--- a/lib/compiler/internal_doc/cerl-notes.md
+++ b/lib/compiler/internal_doc/cerl-notes.md
@@ -53,7 +53,7 @@ Thus, after inlining the function `t/0` will look like this:
         V.
 
 The problem here is that the inliner assumed that the bindings from
-the first and second call to `cer_clauses:match/3` would be the same.
+the first and second call to `cerl_clauses:match/3` would be the same.
 It used the empty bindings from the first call for the body.
 
 The correct way would be to add the bindings from the second call:
diff --git a/lib/dialyzer/test/indent_SUITE_data/src/record_send_test.erl b/lib/dialyzer/test/indent_SUITE_data/src/record_send_test.erl
index 87cd97bd85..a6e297950b 100644
--- a/lib/dialyzer/test/indent_SUITE_data/src/record_send_test.erl
+++ b/lib/dialyzer/test/indent_SUITE_data/src/record_send_test.erl
@@ -4,7 +4,7 @@
 %% Description : A test inspired by a post of Mkcael Remond to the
 %%		 Erlang mailing list suggesting thst Dialyzer should
 %%		 be reporting sends to records rather than to pids.
-%%		 Dialyzer v1.3.0 indeed reports one of the dicrepancies
+%%		 Dialyzer v1.3.0 indeed reports one of the discrepancies
 %%		 (the one with the 4-tuple) but not the one where the
 %%		 message is sent to a pair which is a record.
 %%		 This should be fixed.
diff --git a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per.erl b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per.erl
index 97c92a2dd1..f3eaa78471 100644
--- a/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per.erl
+++ b/lib/dialyzer/test/r9c_SUITE_data/src/asn1/asn1rt_per.erl
@@ -1346,7 +1346,7 @@ create_char_tab(_Min,[],_V) ->
 create_char_tab(Min,L,V) ->
     [false|create_char_tab(Min+1,L,V)].
 
-%% This very inefficient and should be moved to compiletime
+%% This is very inefficient and should be moved to compile time
 charbits(NumOfChars,aligned) ->
     case charbits(NumOfChars) of
 	1 -> 1;
diff --git a/lib/stdlib/uc_spec/README-UPDATE.txt b/lib/stdlib/uc_spec/README-UPDATE.txt
index 0bf6117611..95f829b2fa 100644
--- a/lib/stdlib/uc_spec/README-UPDATE.txt
+++ b/lib/stdlib/uc_spec/README-UPDATE.txt
@@ -31,7 +31,7 @@ version in lib/stdlib/uc_spec/gen_unicode_mod.escript
 4. Read the release notes by visiting https://www.unicode.org/versions/latest/
 and assess if additional changes are necessary in the Erlang code.
 
-5. Replace all ocurrences of previous version of Unicode with the new one in
+5. Replace all occurrences of the previous version of Unicode with the new one in
 this very same file (lib/stdlib/uc_spec/README-UPDATE.txt).
 Remember to update these instructions if a new file is added or any other change
 is required for future version updates.
diff --git a/lib/xmerl/test/xmerl_xsd_Sun2002-01-16_SUITE.erl b/lib/xmerl/test/xmerl_xsd_Sun2002-01-16_SUITE.erl
index 2af6165ee6..c7c10234d7 100644
--- a/lib/xmerl/test/xmerl_xsd_Sun2002-01-16_SUITE.erl
+++ b/lib/xmerl/test/xmerl_xsd_Sun2002-01-16_SUITE.erl
@@ -71,7 +71,7 @@ init_per_testcase(TestCase,Config) ->
 end_per_testcase(_Func,_Config) ->
     ok.
 
-%% ID Constranints. Very naive test of identity constraint
+%% ID Constraints. Very naive test of identity constraint
 'Sun-idc001.nogen'(Config) when is_list(Config) ->
   STResList0 = [],
 
@@ -88,7 +88,7 @@ end_per_testcase(_Func,_Config) ->
 
   xmerl_xsd_lib:compare_test_results(Config,STResList1,ITResList3).
 
-%% ID Constranints. Reference to an undeclared key
+%% ID Constraints. Reference to an undeclared key
 'Sun-idc002.e'(Config) when is_list(Config) ->
   STResList0 = [],
 
@@ -98,7 +98,7 @@ end_per_testcase(_Func,_Config) ->
 
   xmerl_xsd_lib:compare_test_results(Config,STResList1,[]).
 
-%% ID Constranints. Reference to an undeclared key in an undeclared namespace
+%% ID Constraints. Reference to an undeclared key in an undeclared namespace
 'Sun-idc002b.e'(Config) when is_list(Config) ->
   STResList0 = [],
 
@@ -108,7 +108,7 @@ end_per_testcase(_Func,_Config) ->
 
   xmerl_xsd_lib:compare_test_results(Config,STResList1,[]).
 
-%% ID Constranints. Reference to non-key constraint.
+%% ID Constraints. Reference to non-key constraint.
 'Sun-idc003.e'(Config) when is_list(Config) ->
   STResList0 = [],
 
@@ -118,7 +118,7 @@ end_per_testcase(_Func,_Config) ->
 
   xmerl_xsd_lib:compare_test_results(Config,STResList1,[]).
 
-%% ID Constranints.
+%% ID Constraints.
 'Sun-idc004.nogen'(Config) when is_list(Config) ->
   STResList0 = [],
 
-- 
2.43.0

openSUSE Build Service is sponsored by