From df8134ba06b7311f689d7a19817f3d54a6708623 Mon Sep 17 00:00:00 2001 From: Rawal27 Date: Sun, 2 Aug 2026 17:51:43 +0530 Subject: [PATCH 1/5] doc: fix grammar and punctuation in dgram documentation Signed-off-by: Rawal27 --- doc/api/dgram.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/dgram.md b/doc/api/dgram.md index 2113cbc44226..4ca767f74f92 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -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 a rare case (e.g., attempting to bind with a closed socket), an [`Error`][] may be thrown. Example of a UDP server listening on port 41234: @@ -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 case (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. @@ -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. @@ -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 From 255dfe707d5b52ead4dabd2cb3a151d1a70ae04b Mon Sep 17 00:00:00 2001 From: Rawal27 Date: Sun, 2 Aug 2026 17:54:58 +0530 Subject: [PATCH 2/5] doc: fix grammar and punctuation in dgram documentation plural Signed-off-by: Rawal27 --- doc/api/dgram.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/dgram.md b/doc/api/dgram.md index 4ca767f74f92..93c51e18b2d2 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -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. From c9acbf2fff029e2a88d684a9d31e5a23e9e44704 Mon Sep 17 00:00:00 2001 From: Rawal27 Date: Sun, 2 Aug 2026 18:01:26 +0530 Subject: [PATCH 3/5] doc: fix grammar and punctuation in dgram documentation Signed-off-by: Rawal27 --- doc/api/dgram.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/dgram.md b/doc/api/dgram.md index 93c51e18b2d2..00917bbf55fe 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -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 a rare case (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. From 75adb2e956dd29a2513da710c09674d3252b572a Mon Sep 17 00:00:00 2001 From: Kamal Rawal Date: Sun, 2 Aug 2026 21:17:29 +0530 Subject: [PATCH 4/5] Update doc/api/dgram.md Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> --- doc/api/dgram.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/dgram.md b/doc/api/dgram.md index 00917bbf55fe..1ff200c41384 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -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 a 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: From c76eb6eff3f0c94a95a3e250531210bc5304e7e6 Mon Sep 17 00:00:00 2001 From: Kamal Rawal Date: Sun, 2 Aug 2026 21:17:41 +0530 Subject: [PATCH 5/5] Update doc/api/dgram.md Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> --- doc/api/dgram.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/dgram.md b/doc/api/dgram.md index 1ff200c41384..acf8332d9bcf 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -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 a 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.