Skip to content

Commit 3da9d77

Browse files
greenheadHQaduh95
authored andcommitted
doc: fix typos in documentation
Signed-off-by: greenhead <shren0812@gmail.com> PR-URL: #64900 Reviewed-By: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com>
1 parent aa7c363 commit 3da9d77

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

doc/api/crypto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4995,7 +4995,7 @@ HKDF is a simple key derivation function defined in RFC 5869. The given `ikm`,
49954995
`salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
49964996

49974997
The supplied `callback` function is called with two arguments: `err` and
4998-
`derivedKey`. If an errors occurs while deriving the key, `err` will be set;
4998+
`derivedKey`. If an error occurs while deriving the key, `err` will be set;
49994999
otherwise `err` will be `null`. The successfully generated `derivedKey` will
50005000
be passed to the callback as an {ArrayBuffer}. An error will be thrown if any
50015001
of the input arguments specify invalid values or types.

doc/api/errors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ New HTTP/2 Streams may not be opened after the `Http2Session` has received a
15061506

15071507
### `ERR_HTTP2_HEADERS_AFTER_RESPOND`
15081508

1509-
An additional headers was specified after an HTTP/2 response was initiated.
1509+
Additional headers were specified after an HTTP/2 response was initiated.
15101510

15111511
<a id="ERR_HTTP2_HEADERS_SENT"></a>
15121512

@@ -2810,7 +2810,7 @@ changes:
28102810
description: Added the `requireStack` and `topLevelAwaitLocations` properties.
28112811
-->
28122812

2813-
When trying to `require()` a [ES Module][], the module turns out to be asynchronous.
2813+
When trying to `require()` an [ES Module][], the module turns out to be asynchronous.
28142814
That is, it contains top-level await.
28152815

28162816
When uncaught, the flag `--experimental-print-required-tla` prints
@@ -2832,7 +2832,7 @@ This error has the following additional non-enumerable properties:
28322832

28332833
### `ERR_REQUIRE_CYCLE_MODULE`
28342834

2835-
When trying to `require()` a [ES Module][], a CommonJS to ESM or ESM to CommonJS edge
2835+
When trying to `require()` an [ES Module][], a CommonJS to ESM or ESM to CommonJS edge
28362836
participates in an immediate cycle.
28372837
This is not allowed because ES Modules cannot be evaluated while they are
28382838
already being evaluated.

doc/api/http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ added:
11891189
- v12.16.0
11901190
-->
11911191

1192-
* Type: {boolean} Whether the request is send through a reused socket.
1192+
* Type: {boolean} Whether the request is sent through a reused socket.
11931193

11941194
When sending request through a keep-alive enabled agent, the underlying socket
11951195
might be reused. But if server closes connection at unfortunate time, client

doc/api/net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2135,7 +2135,7 @@ Creates a new TCP or [IPC][] server.
21352135
If `allowHalfOpen` is set to `true`, when the other end of the socket
21362136
signals the end of transmission, the server will only send back the end of
21372137
transmission when [`socket.end()`][] is explicitly called. For example, in the
2138-
context of TCP, when a FIN packed is received, a FIN packed is sent
2138+
context of TCP, when a FIN packet is received, a FIN packet is sent
21392139
back only when [`socket.end()`][] is explicitly called. Until then the
21402140
connection is half-closed (non-readable but still writable). See [`'end'`][]
21412141
event and [RFC 1122][half-closed] (section 4.2.2.13) for more information.

doc/api/process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3289,7 +3289,7 @@ const { platform } = require('node:process');
32893289
console.log(`This platform is ${platform}`);
32903290
```
32913291
3292-
The value `'android'` may also be returned if the Node.js is built on the
3292+
The value `'android'` may also be returned if Node.js is built on the
32933293
Android operating system. However, Android support in Node.js
32943294
[is experimental][Android building].
32953295

doc/api/punycode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ added: v0.6.1
101101

102102
The `punycode.toUnicode()` method converts a string representing a domain name
103103
containing [Punycode][] encoded characters into Unicode. Only the [Punycode][]
104-
encoded parts of the domain name are be converted.
104+
encoded parts of the domain name are converted.
105105

106106
```js
107107
// decode domain names

0 commit comments

Comments
 (0)