Skip to content

Commit 8e45c9d

Browse files
watildervagg
authored andcommitted
doc: fix typo in api/dgram
PR-URL: #5678 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 44a9b10 commit 8e45c9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/dgram.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ drop membership on all valid interfaces.
197197
Broadcasts a datagram on the socket. The destination `port` and `address` must
198198
be specified.
199199

200-
The `msg` argument containins the message to be sent.
200+
The `msg` argument contains the message to be sent.
201201
Depending on its type, different behavior can apply. If `msg` is a `Buffer`,
202202
the `offset` and `length` specify the offset within the `Buffer` where the
203203
message begins and the number of bytes in the message, respectively.
204204
If `msg` is a `String`, then it is automatically converted to a `Buffer`
205-
with `'utf8'` enecoding. With messages that
205+
with `'utf8'` encoding. With messages that
206206
contain multi-byte characters, `offset` and `length` will be calculated with
207207
respect to [byte length][] and not the character position.
208208
If `msg` is an array, `offset` and `length` must not be specified.

0 commit comments

Comments
 (0)