Skip to content

Commit

Permalink
src,doc,test: Fix common misspellings
Browse files Browse the repository at this point in the history
Backport-PR-URL: #20456
PR-URL: #18151
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
silverwind authored and MylesBorins committed May 2, 2018
1 parent 0b828e5 commit 5e4f9b3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ added: v8.0.0
argument.

The `_destroy()` method is called by [`writable.destroy()`][writable-destroy].
It can be overriden by child classes but it **must not** be called directly.
It can be overridden by child classes but it **must not** be called directly.

#### writable.\_final(callback)
<!-- YAML
Expand Down Expand Up @@ -1670,7 +1670,7 @@ added: v8.0.0
argument.

The `_destroy()` method is called by [`readable.destroy()`][readable-destroy].
It can be overriden by child classes but it **must not** be called directly.
It can be overridden by child classes but it **must not** be called directly.

#### readable.push(chunk[, encoding])
<!-- YAML
Expand Down
4 changes: 2 additions & 2 deletions src/node_http2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ inline int Http2Session::OnBeginHeadersCallback(nghttp2_session* handle,
}

// Called by nghttp2 for each header name/value pair in a HEADERS block.
// This had to have been preceeded by a call to OnBeginHeadersCallback so
// This had to have been preceded by a call to OnBeginHeadersCallback so
// the Http2Stream is guaranteed to already exist.
inline int Http2Session::OnHeaderCallback(nghttp2_session* handle,
const nghttp2_frame* frame,
Expand Down Expand Up @@ -2732,7 +2732,7 @@ void Http2Session::Ping(const FunctionCallbackInfo<Value>& args) {
return args.GetReturnValue().Set(false);
}

// The Ping itself is an Async resource. When the acknowledgement is recieved,
// The Ping itself is an Async resource. When the acknowledgement is received,
// the callback will be invoked and a notification sent out to JS land. The
// notification will include the duration of the ping, allowing the round
// trip to be measured.
Expand Down
2 changes: 1 addition & 1 deletion test/async-hooks/test-callback-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ assert.ok(!arg);
assert.strictEqual(code, null);
// most posix systems will show 'SIGABRT', but alpine34 does not
if (signal !== 'SIGABRT') {
console.log(`parent recived signal ${signal}\nchild's stderr:`);
console.log(`parent received signal ${signal}\nchild's stderr:`);
console.log(stderr);
process.exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion test/common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ internet-related tests.
A set of addresses for internet-related tests. All properties are configurable
via `NODE_TEST_*` environment variables. For example, to configure
`internet.addresses.INET_HOST`, set the environment
vairable `NODE_TEST_INET_HOST` to a specified host.
variable `NODE_TEST_INET_HOST` to a specified host.

## WPT Module

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ console.log('A message', 5);
while (t > 0) {
if (t++ === 1000) {
t = 0;
console.log(`Outputed message #${k++}`);
console.log(`Outputted message #${k++}`);
}
}
process.exit(55);
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function waitUntilDebugged() {
// call stack depth is 0. We need a chance to call
// Debugger.setAsyncCallStackDepth *before* activating the actual timer for
// async stack traces to work. Directly using a debugger statement would be
// too brittle, and using a longer timeout would unnecesarily slow down the
// too brittle, and using a longer timeout would unnecessarily slow down the
// test on most machines. Triggering a debugger break through an interval is
// a faster and more reliable way.
process._rawDebug('Signal received, waiting for debugger setup');
Expand Down

0 comments on commit 5e4f9b3

Please sign in to comment.