File 0127-Fix-typos-in-lib-tftp.patch of Package erlang
From 8a977657fa05935dc22ddd6dfe4cdbdb462ae2ab Mon Sep 17 00:00:00 2001
From: Kian-Meng Ang <kianmeng@cpan.org>
Date: Tue, 4 Jan 2022 20:24:17 +0800
Subject: [PATCH] Fix typos in lib/tftp
---
lib/tftp/src/tftp.erl | 4 ++--
lib/tftp/src/tftp_file.erl | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/lib/tftp/src/tftp.erl b/lib/tftp/src/tftp.erl
index 31e4c651e8..af839adbc2 100644
--- a/lib/tftp/src/tftp.erl
+++ b/lib/tftp/src/tftp.erl
@@ -79,7 +79,7 @@
%%% setuid_socket_wrap. Then the command line argument
%%% "-tftpd_69 22" will trigger the prebound file
%%% descriptor 22 to be used instead of opening port 69.
-%%% The UDP option {udp, [{fd, 22}]} autmatically be added.
+%%% The UDP option {udp, [{fd, 22}]} automatically be added.
%%% See init:get_argument/ about command line arguments and
%%% gen_udp:open/2 about UDP options.
%%%
@@ -107,7 +107,7 @@
%%% usage is when used in conjunction with setuid_socket_wrap
%%% to be able to open privileged sockets. For example if the
%%% file descriptor 22 has been opened by setuid_socket_wrap
-%%% and you have choosen my_tftp_fd as init argument, the
+%%% and you have chosen my_tftp_fd as init argument, the
%%% command line should like this "erl -my_tftp_fd 22" and
%%% FileDesc should be set to my_tftpd_fd. This would
%%% automatically imply {fd, 22} to be set as UDP option.
diff --git a/lib/tftp/src/tftp_file.erl b/lib/tftp/src/tftp_file.erl
index 5922fc9418..cbb393b748 100644
--- a/lib/tftp/src/tftp_file.erl
+++ b/lib/tftp/src/tftp_file.erl
@@ -67,7 +67,7 @@
%% PeerType = inet | inet6
%% PeerHost = ip_address()
%% PeerPort = integer()
-%% Acess = read | write
+%% Access = read | write
%% Filename = string()
%% Mode = string()
%% SuggestedOptions = [{Key, Value}]
@@ -118,7 +118,7 @@ prepare(_Peer, Access, Filename, Mode, SuggestedOptions, Initial) when is_list(I
%% PeerType = inet | inet6
%% PeerHost = ip_address()
%% PeerPort = integer()
-%% Acess = read | write
+%% Access = read | write
%% Filename = string()
%% Mode = string()
%% SuggestedOptions = [{Key, Value}]
@@ -135,10 +135,10 @@ prepare(_Peer, Access, Filename, Mode, SuggestedOptions, Initial) when is_list(I
%%
%% Opens a file for read or write access.
%%
-%% On the client side where the open/4 call has been preceeded by a
+%% On the client side where the open/4 call has been preceded by a
%% call to prepare/4, all options must be accepted or rejected.
-%% On the server side, where there are no preceeding prepare/4 call,
-%% noo new options may be added, but the ones that are present as
+%% On the server side, where there are no preceding prepare/4 call,
+%% no new options may be added, but the ones that are present as
%% SuggestedOptions may be omitted or replaced with new values
%% in the AcceptedOptions.
%%-------------------------------------------------------------------
--
2.34.1