File 3751-Fix-typos-in-lib-compiler.patch of Package erlang

From 145e96537a4ef8494ffb3ce9df47a8b52100ea27 Mon Sep 17 00:00:00 2001
From: "Kian-Meng, Ang" <kianmeng@cpan.org>
Date: Mon, 6 Dec 2021 06:14:28 +0800
Subject: [PATCH] Fix typos in lib/compiler

---
 lib/compiler/doc/src/compile.xml                     |  2 +-
 lib/compiler/doc/src/notes.xml                       | 12 ++++++------
 lib/compiler/src/beam_jump.erl                       | 12 ++++++------
 lib/compiler/src/beam_ssa.erl                        |  2 +-
 lib/compiler/src/beam_ssa_bool.erl                   |  4 ++--
 lib/compiler/src/beam_ssa_bsm.erl                    |  2 +-
 lib/compiler/src/beam_ssa_codegen.erl                |  2 +-
 lib/compiler/src/beam_ssa_opt.erl                    | 10 +++++-----
 lib/compiler/src/beam_ssa_pre_codegen.erl            |  4 ++--
 lib/compiler/src/beam_ssa_share.erl                  |  2 +-
 lib/compiler/src/beam_ssa_type.erl                   |  2 +-
 lib/compiler/src/cerl_inline.erl                     | 10 +++++-----
 lib/compiler/src/compile.erl                         |  4 ++--
 lib/compiler/src/genop.tab                           |  4 ++--
 lib/compiler/src/rec_env.erl                         |  2 +-
 lib/compiler/src/sys_core_bsm.erl                    |  2 +-
 lib/compiler/src/sys_core_fold.erl                   |  2 +-
 lib/compiler/src/v3_core.erl                         |  8 ++++----
 lib/compiler/src/v3_kernel.erl                       |  6 +++---
 lib/compiler/test/beam_jump_SUITE.erl                |  2 +-
 lib/compiler/test/beam_ssa_SUITE.erl                 |  4 ++--
 lib/compiler/test/bs_construct_SUITE.erl             |  2 +-
 .../test/compilation_SUITE_data/compiler_1.erl       |  8 ++++----
 .../test/compilation_SUITE_data/convopts.erl         |  2 +-
 .../test/compilation_SUITE_data/opt_crash.erl        |  2 +-
 .../test/compilation_SUITE_data/otp_4790.erl         |  2 +-
 lib/compiler/test/compile_SUITE.erl                  |  4 ++--
 lib/compiler/test/compile_SUITE_data/big.erl         |  8 ++++----
 lib/compiler/test/receive_SUITE.erl                  |  2 +-
 .../test/receive_SUITE_data/ref_opt/yes_10.erl       |  2 +-
 .../test/receive_SUITE_data/ref_opt/yes_11.erl       |  2 +-
 lib/compiler/test/trycatch_SUITE.erl                 |  6 +++---
 32 files changed, 69 insertions(+), 69 deletions(-)

diff --git a/lib/compiler/src/beam_ssa_opt.erl b/lib/compiler/src/beam_ssa_opt.erl
index 91db5c6400..84a0f4c81d 100644
--- a/lib/compiler/src/beam_ssa_opt.erl
+++ b/lib/compiler/src/beam_ssa_opt.erl
@@ -1123,7 +1123,7 @@ float_opt_1(L, #b_blk{is=Is0}=Blk0, Bs0, Count0, Fs0) ->
     end.
 
 %% Split out {float,convert} instructions into separate blocks, number
-%% the blocks, and add {succeded,body} in each {float,convert} block.
+%% the blocks, and add {succeeded,body} in each {float,convert} block.
 float_fixup_conv(L, Is, Blk, Count0) ->
     Split = float_split_conv(Is, Blk),
     {Blks,Count} = float_number(Split, L, Count0),
@@ -1420,7 +1420,7 @@ live_opt_is([], Live, Acc) ->
 %%%
 %%% try/catch optimization.
 %%%
-%%% Attemps to rewrite try/catches as guards when we know the exception won't
+%%% Attempts to rewrite try/catches as guards when we know the exception won't
 %%% be inspected in any way, and removes try/catches whose expressions will
 %%% never throw.
 %%%
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index 840824af0f..53c349123f 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -1400,7 +1400,7 @@ makedep_output(Code, #compile{options=Opts,ofile=Ofile}=St) ->
 
     if
         is_list(Output) ->
-            %% Write the depedencies to a file.
+            %% Write the dependencies to a file.
             case file:write_file(Output, Code) of
                 ok ->
                     {ok,Code,St};
@@ -1409,7 +1409,7 @@ makedep_output(Code, #compile{options=Opts,ofile=Ofile}=St) ->
                     {error,St#compile{errors=St#compile.errors++[Err]}}
             end;
         true ->
-            %% Write the depedencies to a device.
+            %% Write the dependencies to a device.
             try io:fwrite(Output, "~ts", [Code]) of
                 ok ->
                     {ok,Code,St}
-- 
2.31.1

openSUSE Build Service is sponsored by