Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/api/dgram.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ useful.
A bound datagram socket keeps the Node.js process running to receive
datagram messages.

If binding fails, an `'error'` event is generated. In rare case (e.g.
If binding fails, an `'error'` event is generated. In rare cases (e.g.,
attempting to bind with a closed socket), an [`Error`][] may be thrown.

Example of a UDP server listening on port 41234:
Expand Down Expand Up @@ -350,7 +350,7 @@ is called.
A bound datagram socket keeps the Node.js process running to receive
datagram messages.

If binding fails, an `'error'` event is generated. In rare case (e.g.
If binding fails, an `'error'` event is generated. In rare cases (e.g.,
attempting to bind with a closed socket), an [`Error`][] may be thrown.

An example socket listening on an exclusive port is shown below.
Expand Down Expand Up @@ -592,7 +592,7 @@ to exclude the socket from the reference counting that keeps the Node.js
process active. The `socket.ref()` method adds the socket back to the reference
counting and restores the default behavior.

Calling `socket.ref()` multiples times will have no additional effect.
Calling `socket.ref()` multiple times will have no additional effect.

The `socket.ref()` method returns a reference to the socket so calls can be
chained.
Expand Down Expand Up @@ -741,7 +741,7 @@ client.send([buf1, buf2], 41234, (err) => {
});
```

Sending multiple buffers might be faster or slower depending on the
Sending multiple buffers might be faster or slower, depending on the
application and operating system. Run benchmarks to
determine the optimal strategy on a case-by-case basis. Generally speaking,
however, sending multiple buffers is faster.
Expand Down Expand Up @@ -883,7 +883,7 @@ socket.bind(1234, () => {
A call on a socket that is not ready to send or no longer open may throw a _Not
running_ [`Error`][].

If `multicastInterface` can not be parsed into an IP then an _EINVAL_
If `multicastInterface` cannot be parsed into an IP then an _EINVAL_
[`System Error`][] is thrown.

On IPv4, if `multicastInterface` is a valid address but does not match any
Expand Down
Loading