diff options
author | Andrew Dryga <[email protected]> | 2017-02-12 19:45:39 +0200 |
---|---|---|
committer | Andrew Dryga <[email protected]> | 2017-02-14 11:32:53 +0200 |
commit | 517db4752997cf19e18c65302d21eed1f1eb6e1b (patch) | |
tree | 76474ef64538282a614162b1bcf0c59a599310b0 /lib/kernel/src | |
parent | a6f988f2c3e1e29ee046fd257f30cfc13170ad52 (diff) | |
download | otp-517db4752997cf19e18c65302d21eed1f1eb6e1b.tar.gz otp-517db4752997cf19e18c65302d21eed1f1eb6e1b.tar.bz2 otp-517db4752997cf19e18c65302d21eed1f1eb6e1b.zip |
Fixed typos in lib/kernel
Diffstat (limited to 'lib/kernel/src')
-rw-r--r-- | lib/kernel/src/inet_parse.erl | 4 | ||||
-rw-r--r-- | lib/kernel/src/inet_udp.erl | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/kernel/src/inet_parse.erl b/lib/kernel/src/inet_parse.erl index b0a3ee3008..9b47199e08 100644 --- a/lib/kernel/src/inet_parse.erl +++ b/lib/kernel/src/inet_parse.erl @@ -701,8 +701,8 @@ dup(N, E, L) when is_integer(N), N >= 1 -> -%% Convert IPv4 adress to ascii -%% Convert IPv6 / IPV4 adress to ascii (plain format) +%% Convert IPv4 address to ascii +%% Convert IPv6 / IPV4 address to ascii (plain format) ntoa({A,B,C,D}) -> integer_to_list(A) ++ "." ++ integer_to_list(B) ++ "." ++ integer_to_list(C) ++ "." ++ integer_to_list(D); diff --git a/lib/kernel/src/inet_udp.erl b/lib/kernel/src/inet_udp.erl index 8a8aa8ecca..c69791b9aa 100644 --- a/lib/kernel/src/inet_udp.erl +++ b/lib/kernel/src/inet_udp.erl @@ -113,7 +113,7 @@ fdopen(Fd, Opts) -> %% Here's how: %% Reverse the list. %% For each head option go through the tail and remove -%% all occurences of the same option from the tail. +%% all occurrences of the same option from the tail. %% Store that head option and iterate using the new tail. %% Return the list of stored head options. optuniquify(List) -> @@ -122,8 +122,8 @@ optuniquify(List) -> optuniquify([], Result) -> Result; optuniquify([Opt | Tail], Result) -> - %% Remove all occurences of Opt in Tail, - %% prepend Opt to Result, + %% Remove all occurrences of Opt in Tail, + %% prepend Opt to Result, %% then iterate back here. optuniquify(Opt, Tail, [], Result). |