Skip to content

Commit

Permalink
doc: fix typo in api/dgram
Browse files Browse the repository at this point in the history
PR-URL: #5678
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
watilde authored and rvagg committed Mar 16, 2016
1 parent 44a9b10 commit 8e45c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/dgram.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ drop membership on all valid interfaces.
Broadcasts a datagram on the socket. The destination `port` and `address` must
be specified.

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

0 comments on commit 8e45c9d

Please sign in to comment.