Skip to content

Commit 808904f

Browse files
authored
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 80c57e4 commit 808904f

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
@@ -5091,7 +5091,7 @@ HKDF is a simple key derivation function defined in RFC 5869. The given `ikm`,
50915091
`salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
50925092

50935093
The supplied `callback` function is called with two arguments: `err` and
5094-
`derivedKey`. If an errors occurs while deriving the key, `err` will be set;
5094+
`derivedKey`. If an error occurs while deriving the key, `err` will be set;
50955095
otherwise `err` will be `null`. The successfully generated `derivedKey` will
50965096
be passed to the callback as an {ArrayBuffer}. An error will be thrown if any
50975097
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
@@ -1508,7 +1508,7 @@ New HTTP/2 Streams may not be opened after the `Http2Session` has received a
15081508

15091509
### `ERR_HTTP2_HEADERS_AFTER_RESPOND`
15101510

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

15131513
<a id="ERR_HTTP2_HEADERS_SENT"></a>
15141514

@@ -2817,7 +2817,7 @@ changes:
28172817
description: Added the `requireStack` and `topLevelAwaitLocations` properties.
28182818
-->
28192819

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

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

28402840
### `ERR_REQUIRE_CYCLE_MODULE`
28412841

2842-
When trying to `require()` a [ES Module][], a CommonJS to ESM or ESM to CommonJS edge
2842+
When trying to `require()` an [ES Module][], a CommonJS to ESM or ESM to CommonJS edge
28432843
participates in an immediate cycle.
28442844
This is not allowed because ES Modules cannot be evaluated while they are
28452845
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
@@ -2141,7 +2141,7 @@ Creates a new TCP or [IPC][] server.
21412141
If `allowHalfOpen` is set to `true`, when the other end of the socket
21422142
signals the end of transmission, the server will only send back the end of
21432143
transmission when [`socket.end()`][] is explicitly called. For example, in the
2144-
context of TCP, when a FIN packed is received, a FIN packed is sent
2144+
context of TCP, when a FIN packet is received, a FIN packet is sent
21452145
back only when [`socket.end()`][] is explicitly called. Until then the
21462146
connection is half-closed (non-readable but still writable). See [`'end'`][]
21472147
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
@@ -3292,7 +3292,7 @@ const { platform } = require('node:process');
32923292
console.log(`This platform is ${platform}`);
32933293
```
32943294
3295-
The value `'android'` may also be returned if the Node.js is built on the
3295+
The value `'android'` may also be returned if Node.js is built on the
32963296
Android operating system. However, Android support in Node.js
32973297
[is experimental][Android building].
32983298

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)