Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8e45c9d

Browse filesBrowse files
watildervagg
authored andcommitted
doc: fix typo in api/dgram
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>
1 parent 44a9b10 commit 8e45c9d
Copy full SHA for 8e45c9d

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/dgram.markdown‎

Copy file name to clipboardExpand all lines: doc/api/dgram.markdown
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.