File 0863-Fix-typos-in-lib-eunit-ftp.patch of Package erlang

From b9ad685fdc7d1838a6f71a0fa2768e384ff44f68 Mon Sep 17 00:00:00 2001
From: "Kian-Meng, Ang" <kianmeng@cpan.org>
Date: Thu, 16 Dec 2021 09:20:39 +0800
Subject: [PATCH] Fix typos in lib/{eunit,ftp}

---
 lib/eunit/src/eunit_data.erl                  |  2 +-
 lib/ftp/src/ftp.erl                           |  4 ++--
 lib/ftp/src/ftp_progress.erl                  |  4 ++--
 lib/ftp/src/ftp_response.erl                  |  8 ++++----
 lib/ftp/test/erl_make_certs.erl               |  2 +-
 lib/ftp/test/ftp_SUITE.erl                    | 14 ++++++-------
 lib/ftp/test/ftp_SUITE_data/vsftpd.conf       |  2 +-
 lib/ftp/test/ftp_format_SUITE.erl             | 20 +++++++++----------
 .../ftp_simple_client_server_data/vsftpd.conf |  2 +-
 9 files changed, 29 insertions(+), 29 deletions(-)

diff --git a/lib/eunit/src/eunit_data.erl b/lib/eunit/src/eunit_data.erl
index c9dc184970..702d3a5687 100644
--- a/lib/eunit/src/eunit_data.erl
+++ b/lib/eunit/src/eunit_data.erl
@@ -105,7 +105,7 @@
 %% @type fileName() = string()
 
 %% TODO: Can we mark up tests as known-failures?
-%% TODO: Is it possible to handle known timout/setup failures?
+%% TODO: Is it possible to handle known timeout/setup failures?
 %% TODO: Add diagnostic tests which never fail, but may cause warnings?
 
 %% ---------------------------------------------------------------------
diff --git a/lib/inets/src/ftp/ftp.erl b/lib/inets/src/ftp/ftp.erl
index 221eac3dac..c0ae13d053 100644
--- a/lib/inets/src/ftp/ftp.erl
+++ b/lib/inets/src/ftp/ftp.erl
@@ -1255,7 +1255,7 @@ handle_cast({Pid, close}, State) ->
     error_logger:info_report(Report),
     {noreply, State};
 
-%% Catch all -  This can oly happen if the application programmer writes 
+%% Catch all -  This can only happen if the application programmer writes
 %% really bad code that violates the API.
 handle_cast(Msg, State) ->
   {stop, {'API_violation_connection_closed', Msg}, State}.
diff --git a/lib/inets/src/ftp/ftp_progress.erl b/lib/inets/src/ftp/ftp_progress.erl
index 64c612519d..f6c01c3f81 100644
--- a/lib/inets/src/ftp/ftp_progress.erl
+++ b/lib/inets/src/ftp/ftp_progress.erl
@@ -18,8 +18,8 @@
 %% %CopyrightEnd%
 %%
 %%
-%% Description: This module impements a temporary process that 
-%% performes progress reporting during file transfer calling a user 
+%% Description: This module implements a temporary process that 
+%% performs progress reporting during file transfer calling a user 
 %% defined callback function. Its life span is as long as the ftp connection
 %% processes that spawned it lives. The purpose of this process is to 
 %% shild the ftp connection process from errors and time consuming operations
diff --git a/lib/inets/src/ftp/ftp_response.erl b/lib/inets/src/ftp/ftp_response.erl
index 8d00153ba8..91288993c6 100644
--- a/lib/inets/src/ftp/ftp_response.erl
+++ b/lib/inets/src/ftp/ftp_response.erl
@@ -18,7 +18,7 @@
 %% %CopyrightEnd%
 %%
 %%
-%% Description: This module impements handling of ftp server responses.
+%% Description: This module implements handling of ftp server responses.
 
 -module(ftp_response).
 
@@ -50,7 +50,7 @@
 %%                                             {continue, {Data, 
 %%                                                       AccLines, StatusCode}}
 %%
-%% Data = binary() - data recived on the control connection from the 
+%% Data = binary() - data received on the control connection from the 
 %%                   ftp-server. 
 %% AccLines = [string()] 
 %% StatusCode     =  start | {byte(), byte(), byte()} | finish -
@@ -95,7 +95,7 @@ parse_lines(<<?CR, ?LF, C1, C2, C3, ?WHITE_SPACE, Rest/binary>>, Lines, {C1, C2,
 %% Potential end found  wait for more data 
 parse_lines(<<C1, C2, C3>> = Bin, Lines, {C1, C2, C3}) ->
     {continue, {Bin, Lines, {C1, C2, C3}}};
-%% Intermidate line begining with status code
+%% Intermidate line beginning with status code
 parse_lines(<<C1, C2, C3, Rest/binary>>, Lines, {C1, C2, C3}) ->
     parse_lines(Rest, [C3, C2, C1 | Lines], {C1, C2, C3});
 
@@ -184,7 +184,7 @@ interpret_status(?POS_PREL,_,_)                   -> pos_prel;
 interpret_status(?POS_COMPL, ?AUTH_ACC, 4)        -> tls_upgrade; 
 %% Positive Completion Reply
 interpret_status(?POS_COMPL,_,_)                  -> pos_compl;
-%% Positive Intermediate Reply nedd account
+%% Positive Intermediate Reply need account
 interpret_status(?POS_INTERM,?AUTH_ACC,2)         -> pos_interm_acct;
 %% Positive Intermediate Reply
 interpret_status(?POS_INTERM,_,_)                 -> pos_interm; 
diff --git a/lib/inets/test/erl_make_certs.erl b/lib/inets/test/erl_make_certs.erl
index 2af2d8c3e9..546f33ed0c 100644
--- a/lib/inets/test/erl_make_certs.erl
+++ b/lib/inets/test/erl_make_certs.erl
@@ -44,7 +44,7 @@
 %%      {title, Title}
 %%      {dnQualifer, DnQ}
 %%   issuer = {Issuer, IssuerKey}                   true (i.e. a ca cert is created) 
-%%                                                  (obs IssuerKey might be {Key, Password}
+%%                                                  (Note! The IssuerKey might be {Key, Password}
 %%   key = KeyFile|KeyBin|rsa|dsa|ec                Subject PublicKey rsa, dsa or ec generates key
 %%   
 %%
diff --git a/lib/inets/test/ftp_SUITE.erl b/lib/inets/test/ftp_SUITE.erl
index fb6468b499..71ddd667f4 100644
--- a/lib/inets/test/ftp_SUITE.erl
+++ b/lib/inets/test/ftp_SUITE.erl
@@ -516,7 +516,7 @@ ls(Config0) ->
 
 %%-------------------------------------------------------------------------
 nlist(doc) -> ["Open an ftp connection; nlist the current directory, and the "
-	       "\"test\" directory. Nlist does not behave consistenly over "
+	       "\"test\" directory. Nlist does not behave consistently over "
 	       "operating systems. On some it is an error to have an empty "
 	       "directory."];
 nlist(Config0) ->
@@ -888,7 +888,7 @@ quote(Config) ->
     Pid = ?config(ftp, Config),
     ["257 \""++_Rest] = ftp:quote(Pid, "pwd"), %% 257
     [_| _] = ftp:quote(Pid, "help"),
-    %% This negativ test causes some ftp servers to hang. This test
+    %% This negative test causes some ftp servers to hang. This test
     %% is not important for the client, so we skip it for now.
     %%["425 Can't build data connection: Connection refused."] 
     %% = ftp:quote(Pid, "list"), 
diff --git a/lib/inets/test/ftp_SUITE_data/vsftpd.conf b/lib/inets/test/ftp_SUITE_data/vsftpd.conf
index 51cea2dcd8..7a2bf67805 100644
--- a/lib/inets/test/ftp_SUITE_data/vsftpd.conf
+++ b/lib/inets/test/ftp_SUITE_data/vsftpd.conf
@@ -2,7 +2,7 @@
 ###
 ### Some parameters are given in the vsftpd start command.
 ### 
-### Typical command-line paramters are such that has a file path
+### Typical command-line parameters are such that has a file path
 ### component like cert files.
 ###
 
diff --git a/lib/inets/test/ftp_format_SUITE.erl b/lib/inets/test/ftp_format_SUITE.erl
index e1d0de2390..a4a3ca28bd 100644
--- a/lib/inets/test/ftp_format_SUITE.erl
+++ b/lib/inets/test/ftp_format_SUITE.erl
@@ -74,7 +74,7 @@ end_per_testcase(_, Config) ->
 %%-------------------------------------------------------------------------
 
 ftp_150(doc) ->
-    ["Especially check that respons can be devided in a random place."];
+    ["Especially check that a response can be divided in a random place."];
 ftp_150(suite) ->
     [];
 ftp_150(Config) when is_list(Config) ->
@@ -88,7 +88,7 @@ ftp_150(Config) when is_list(Config) ->
     ok.
     
 ftp_200(doc) ->
-    ["Especially check that respons can be devided after the first status "
+    ["Especially check that a response can be divided after the first status "
     "code character and in the end delimiter."];
 ftp_200(suite) ->
     [];
@@ -101,7 +101,7 @@ ftp_200(Config) when is_list(Config) ->
     ok.
 
 ftp_220(doc) ->
-    ["Especially check that respons can be devided after the "
+    ["Especially check that a response can be divided after the "
      "first with space "];
 ftp_220(suite) ->
     [];
@@ -114,7 +114,7 @@ ftp_220(Config) when is_list(Config) ->
     ok.
 
 ftp_226(doc) ->
-    ["Especially check that respons can be devided after second status code"
+    ["Especially check that a response can be divided after second status code"
     " character and in the end delimiter."];
 ftp_226(suite) ->
     [];
@@ -139,7 +139,7 @@ ftp_257(Config) when is_list(Config) ->
     ok.
 
 ftp_331(doc) ->
-    ["Especially check that respons can be devided after the third status "
+    ["Especially check that a response can be divided after the third status "
     " status code character."];
 ftp_331(suite) ->
     [];
@@ -167,7 +167,7 @@ ftp_425(Config) when is_list(Config) ->
     ok.
 
 ftp_multiple_lines(doc) ->
-    ["Especially check multiple lines devided in significant places"];
+    ["Especially check multiple lines divided in significant places"];
 ftp_multiple_lines(suite) ->
     [];
 ftp_multiple_lines(Config) when is_list(Config) ->
@@ -249,9 +249,9 @@ ftp_multiple_lines(Config) when is_list(
 
 ftp_other_status_codes(doc) ->
     ["Check that other valid status codes, than the ones above, are handled"
-     "by ftp_response:interpret/1. Note there are som ftp status codes" 
-     "that will not be received with the current ftp instruction support," 
-     "they are not included here."];
+     "by ftp_response:interpret/1. Note that there are som ftp status codes" 
+     "that will not be received with the current ftp instruction support." 
+     "They are not included here."];
 ftp_other_status_codes(suite) ->
     [];
 ftp_other_status_codes(Config) when is_list(Config) ->
diff --git a/lib/inets/test/property_test/ftp_simple_client_server_data/vsftpd.conf b/lib/inets/test/property_test/ftp_simple_client_server_data/vsftpd.conf
index fd48e2abf0..dc6d0ff0b3 100644
--- a/lib/inets/test/property_test/ftp_simple_client_server_data/vsftpd.conf
+++ b/lib/inets/test/property_test/ftp_simple_client_server_data/vsftpd.conf
@@ -2,7 +2,7 @@
 ###
 ### Some parameters are given in the vsftpd start command.
 ### 
-### Typical command-line paramters are such that has a file path
+### Typical command-line parameters are such that has a file path
 ### component like cert files.
 ###
 
-- 
2.31.1

openSUSE Build Service is sponsored by