Skip to content

Commit

Permalink
Merge pull request #8130 from whatyouhide/gen-udp-doc-typos
Browse files Browse the repository at this point in the history
Fix typos in docs for `gen_udp:connect/2,3`
  • Loading branch information
garazdawi authored Feb 16, 2024
2 parents 01b8b4a + 2cf7d39 commit b36254e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kernel/src/gen_udp.erl
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ data.
This means that it is not necessary to specify the destination address when
sending a datagram. That is, we can use `send/2`.
It also means that the socket will only received data from this address.
It also means that the socket will only receive data from this address.
""".
-doc(#{since => <<"OTP 24.3">>}).
-spec connect(Socket, SockAddr) -> ok | {error, Reason} when
Expand All @@ -588,7 +588,7 @@ send data.
This means that it is not necessary to specify the destination address when
sending a datagram. That is, we can use `send/2`.
It also means that the socket will only received data from this address.
It also means that the socket will only receive data from this address.
""".
-doc(#{since => <<"OTP 24.3">>}).
-spec connect(Socket, Address, Port) -> ok | {error, Reason} when
Expand Down

0 comments on commit b36254e

Please sign in to comment.