Skip to content

Commit 1181ff7

Browse files
sreepurnajastiMylesBorins
authored andcommitted
doc: correct spelling
Backport-PR-URL: #18050 PR-URL: #17911 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Weijia Wang <[email protected]>
1 parent 6a67dfd commit 1181ff7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

doc/api/errors.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ An operation was performed on a stream that had already been destroyed.
890890
### ERR_HTTP2_MAX_PENDING_SETTINGS_ACK
891891

892892
Whenever an HTTP/2 `SETTINGS` frame is sent to a connected peer, the peer is
893-
required to send an acknowledgement that it has received and applied the new
893+
required to send an acknowledgment that it has received and applied the new
894894
`SETTINGS`. By default, a maximum number of unacknowledged `SETTINGS` frames may
895895
be sent at any given time. This error code is used when that limit has been
896896
reached.
@@ -916,7 +916,7 @@ forbidden.
916916
<a id="ERR_HTTP2_PING_CANCEL"></a>
917917
### ERR_HTTP2_PING_CANCEL
918918

919-
An HTTP/2 ping was cancelled.
919+
An HTTP/2 ping was canceled.
920920

921921
<a id="ERR_HTTP2_PING_LENGTH"></a>
922922
### ERR_HTTP2_PING_LENGTH
@@ -1249,11 +1249,11 @@ A failure occurred resolving imports in an [ES6 module][].
12491249
<a id="ERR_MULTIPLE_CALLBACK"></a>
12501250
### ERR_MULTIPLE_CALLBACK
12511251

1252-
A callback was called more then once.
1252+
A callback was called more than once.
12531253

12541254
*Note*: A callback is almost always meant to only be called once as the query
12551255
can either be fulfilled or rejected but not both at the same time. The latter
1256-
would be possible by calling a callback more then once.
1256+
would be possible by calling a callback more than once.
12571257

12581258
<a id="ERR_NAPI_CONS_FUNCTION"></a>
12591259
### 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
@@ -569,8 +569,8 @@ while the session is waiting for the remote peer to acknowledge the new
569569
settings.
570570

571571
*Note*: The new settings will not become effective until the SETTINGS
572-
acknowledgement is received and the `'localSettings'` event is emitted. It
573-
is possible to send multiple SETTINGS frames while acknowledgement is still
572+
acknowledgment is received and the `'localSettings'` event is emitted. It
573+
is possible to send multiple SETTINGS frames while acknowledgment is still
574574
pending.
575575

576576
#### http2session.type
@@ -873,7 +873,7 @@ added: v8.4.0
873873
-->
874874

875875
The `'timeout'` event is emitted after no activity is received for this
876-
`'Http2Stream'` within the number of millseconds set using
876+
`'Http2Stream'` within the number of milliseconds set using
877877
`http2stream.setTimeout()`.
878878

879879
#### Event: 'trailers'

0 commit comments

Comments
 (0)