aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/inet_udp.erl
diff options
context:
space:
mode:
authorAndrew Dryga <[email protected]>2017-02-12 19:45:39 +0200
committerAndrew Dryga <[email protected]>2017-02-14 11:32:53 +0200
commit517db4752997cf19e18c65302d21eed1f1eb6e1b (patch)
tree76474ef64538282a614162b1bcf0c59a599310b0 /lib/kernel/src/inet_udp.erl
parenta6f988f2c3e1e29ee046fd257f30cfc13170ad52 (diff)
downloadotp-517db4752997cf19e18c65302d21eed1f1eb6e1b.tar.gz
otp-517db4752997cf19e18c65302d21eed1f1eb6e1b.tar.bz2
otp-517db4752997cf19e18c65302d21eed1f1eb6e1b.zip
Fixed typos in lib/kernel
Diffstat (limited to 'lib/kernel/src/inet_udp.erl')
-rw-r--r--lib/kernel/src/inet_udp.erl6
1 files changed, 3 insertions, 3 deletions
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).