Skip to content

Commit 0205b3f

Browse files
sreepurnajastiMylesBorins
authored andcommitted
doc: correct spelling
Backport-PR-URL: #18050 Backport-PR-URL: #20456 PR-URL: #17911 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Weijia Wang <starkwang@126.com>
1 parent 46d1b33 commit 0205b3f

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

doc/api/errors.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ An operation was performed on a stream that had already been destroyed.
770770
### ERR_HTTP2_MAX_PENDING_SETTINGS_ACK
771771

772772
Whenever an HTTP/2 `SETTINGS` frame is sent to a connected peer, the peer is
773-
required to send an acknowledgement that it has received and applied the new
773+
required to send an acknowledgment that it has received and applied the new
774774
`SETTINGS`. By default, a maximum number of unacknowledged `SETTINGS` frames may
775775
be sent at any given time. This error code is used when that limit has been
776776
reached.
@@ -796,7 +796,7 @@ forbidden.
796796
<a id="ERR_HTTP2_PING_CANCEL"></a>
797797
### ERR_HTTP2_PING_CANCEL
798798

799-
An HTTP/2 ping was cancelled.
799+
An HTTP/2 ping was canceled.
800800

801801
<a id="ERR_HTTP2_PING_LENGTH"></a>
802802
### ERR_HTTP2_PING_LENGTH
@@ -1028,7 +1028,16 @@ Used when an [ES6 module][] cannot be resolved.
10281028

10291029
> Stability: 1 - Experimental
10301030
1031-
Used when a failure occurs resolving imports in an [ES6 module][].
1031+
Used when a failure occurred resolving imports in an [ES6 module][].
1032+
1033+
<a id="ERR_MULTIPLE_CALLBACK"></a>
1034+
### ERR_MULTIPLE_CALLBACK
1035+
1036+
A callback was called more than once.
1037+
1038+
*Note*: A callback is almost always meant to only be called once as the query
1039+
can either be fulfilled or rejected but not both at the same time. The latter
1040+
would be possible by calling a callback more than once.
10321041

10331042
<a id="ERR_NAPI_CONS_FUNCTION"></a>
10341043
### ERR_NAPI_CONS_FUNCTION

doc/api/http2.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ the handler function will receive three arguments:
191191
added: v8.4.0
192192
-->
193193

194-
The `'localSettings'` event is emitted when an acknowledgement SETTINGS frame
194+
The `'localSettings'` event is emitted when an acknowledgment SETTINGS frame
195195
has been received. When invoked, the handler function will receive a copy of
196196
the local settings.
197197

@@ -339,7 +339,7 @@ Once destroyed, the `Http2Session` will emit the `'close'` event. If `error`
339339
is not undefined, an `'error'` event will be emitted immediately after the
340340
`'close'` event.
341341

342-
If there are any remaining open `Http2Streams` associatd with the
342+
If there are any remaining open `Http2Streams` associated with the
343343
`Http2Session`, those will also be destroyed.
344344

345345
#### http2session.destroyed
@@ -406,7 +406,7 @@ added: v8.4.0
406406
* Value: {boolean}
407407

408408
Indicates whether or not the `Http2Session` is currently waiting for an
409-
acknowledgement for a sent SETTINGS frame. Will be `true` after calling the
409+
acknowledgment for a sent SETTINGS frame. Will be `true` after calling the
410410
`http2session.settings()` method. Will be `false` once all sent SETTINGS
411411
frames have been acknowledged.
412412

@@ -428,12 +428,12 @@ The maximum number of outstanding (unacknowledged) pings is determined by the
428428

429429
If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView`
430430
containing 8 bytes of data that will be transmitted with the `PING` and
431-
returned with the ping acknowledgement.
431+
returned with the ping acknowledgment.
432432

433433
The callback will be invoked with three arguments: an error argument that will
434434
be `null` if the `PING` was successfully acknowledged, a `duration` argument
435435
that reports the number of milliseconds elapsed since the ping was sent and the
436-
acknowledgement was received, and a `Buffer` containing the 8-byte `PING`
436+
acknowledgment was received, and a `Buffer` containing the 8-byte `PING`
437437
payload.
438438

439439
```js
@@ -581,8 +581,8 @@ while the session is waiting for the remote peer to acknowledge the new
581581
settings.
582582

583583
*Note*: The new settings will not become effective until the SETTINGS
584-
acknowledgement is received and the `'localSettings'` event is emitted. It
585-
is possible to send multiple SETTINGS frames while acknowledgement is still
584+
acknowledgment is received and the `'localSettings'` event is emitted. It
585+
is possible to send multiple SETTINGS frames while acknowledgment is still
586586
pending.
587587

588588
#### http2session.type
@@ -885,7 +885,7 @@ added: v8.4.0
885885
-->
886886

887887
The `'timeout'` event is emitted after no activity is received for this
888-
`'Http2Stream'` within the number of millseconds set using
888+
`'Http2Stream'` within the number of milliseconds set using
889889
`http2stream.setTimeout()`.
890890

891891
#### Event: 'trailers'

0 commit comments

Comments
 (0)