Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6c97f7f

Browse filesBrowse files
TrottMylesBorins
authored andcommitted
doc: use American spellings per style guide
PR-URL: #17471 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent a407a48 commit 6c97f7f
Copy full SHA for 6c97f7f
Expand file treeCollapse file tree

17 files changed

+21
-21
lines changed
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ us a report nonetheless.
202202
level of privilege possible.
203203

204204
- [#12141](https://github.com/nodejs/node/pull/12141): _buffer: zero fill
205-
Buffer(num) by default_. The buffer constructor behaviour was documented,
205+
Buffer(num) by default_. The buffer constructor behavior was documented,
206206
but found to be prone to [mis-use](https://snyk.io/blog/exploiting-buffer/).
207207
It has since been changed, but despite much debate, was not considered misuse
208208
prone enough to justify fixing in older release lines and breaking our
Collapse file

‎common.gypi‎

Copy file name to clipboardExpand all lines: common.gypi
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
'msvs_settings': {
170170
'VCCLCompilerTool': {
171171
'Optimization': 3, # /Ox, full optimization
172-
'FavorSizeOrSpeed': 1, # /Ot, favour speed over size
172+
'FavorSizeOrSpeed': 1, # /Ot, favor speed over size
173173
'InlineFunctionExpansion': 2, # /Ob2, inline anything eligible
174174
'WholeProgramOptimization': 'true', # /GL, whole program optimization, needed for LTCG
175175
'OmitFramePointers': 'true',
Collapse file

‎lib/internal/repl.js‎

Copy file name to clipboardExpand all lines: lib/internal/repl.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function createRepl(env, opts, cb) {
3535
opts.terminal = false;
3636
}
3737
// the "dumb" special terminal, as defined by terminfo, doesn't support
38-
// ANSI colour control codes.
38+
// ANSI color control codes.
3939
// see http://invisible-island.net/ncurses/terminfo.ti.html#toc-_Specials
4040
if (parseInt(env.NODE_DISABLE_COLORS) || env.TERM === 'dumb') {
4141
opts.useColors = false;
Collapse file

‎lib/internal/trace_events_async_hooks.js‎

Copy file name to clipboardExpand all lines: lib/internal/trace_events_async_hooks.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const async_wrap = process.binding('async_wrap');
55
const async_hooks = require('async_hooks');
66

77
// Use small letters such that chrome://traceing groups by the name.
8-
// The behaviour is not only useful but the same as the events emitted using
8+
// The behavior is not only useful but the same as the events emitted using
99
// the specific C++ macros.
1010
const BEFORE_EVENT = 'b'.charCodeAt(0);
1111
const END_EVENT = 'e'.charCodeAt(0);
Collapse file

‎src/node_buffer.cc‎

Copy file name to clipboardExpand all lines: src/node_buffer.cc
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ void IndexOfString(const FunctionCallbackInfo<Value>& args) {
984984
is_forward);
985985

986986
if (needle_length == 0) {
987-
// Match String#indexOf() and String#lastIndexOf() behaviour.
987+
// Match String#indexOf() and String#lastIndexOf() behavior.
988988
args.GetReturnValue().Set(static_cast<double>(opt_offset));
989989
return;
990990
}
@@ -1097,7 +1097,7 @@ void IndexOfBuffer(const FunctionCallbackInfo<Value>& args) {
10971097
is_forward);
10981098

10991099
if (needle_length == 0) {
1100-
// Match String#indexOf() and String#lastIndexOf() behaviour.
1100+
// Match String#indexOf() and String#lastIndexOf() behavior.
11011101
args.GetReturnValue().Set(static_cast<double>(opt_offset));
11021102
return;
11031103
}
Collapse file

‎test/addons-napi/test_handle_scope/test_handle_scope.c‎

Copy file name to clipboardExpand all lines: test/addons-napi/test_handle_scope/test_handle_scope.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <string.h>
44

55
// these tests validate the handle scope functions in the normal
6-
// flow. Forcing gc behaviour to fully validate they are doing
6+
// flow. Forcing gc behavior to fully validate they are doing
77
// the right right thing would be quite hard so we keep it
88
// simple for now.
99

Collapse file

‎test/addons-napi/test_number/test.js‎

Copy file name to clipboardExpand all lines: test/addons-napi/test_number/test.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const num8 = Number.NEGATIVE_INFINITY;
3939
assert.strictEqual(num8, test_number.Test(num8));
4040

4141

42-
// validate documented behaviour when value is retrieved
42+
// validate documented behavior when value is retrieved
4343
// as 32 bit integer with napi_get_value_int32
4444
assert.strictEqual(1, test_number.TestInt32Truncation(4294967297));
4545
assert.strictEqual(0, test_number.TestInt32Truncation(4294967296));
Collapse file

‎test/parallel/test-child-process-spawn-typeerror.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-child-process-spawn-typeerror.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ assert.throws(function() { spawn(cmd, s); }, TypeError);
114114
assert.throws(function() { spawn(cmd, a, s); }, TypeError);
115115

116116

117-
// verify that execFile has same argument parsing behaviour as spawn
117+
// verify that execFile has same argument parsing behavior as spawn
118118
//
119119
// function execFile(file=f [,args=a] [, options=o] [, callback=c]) has valid
120120
// combinations:
@@ -174,7 +174,7 @@ assert.throws(function() { execFile(cmd, n, o, s); }, TypeError);
174174
assert.doesNotThrow(function() { execFile(cmd, c, s); });
175175

176176

177-
// verify that fork has same argument parsing behaviour as spawn
177+
// verify that fork has same argument parsing behavior as spawn
178178
//
179179
// function fork(file=f [,args=a] [, options=o]) has valid combinations:
180180
// (f)
Collapse file

‎test/parallel/test-http2-compat-socket-set.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http2-compat-socket-set.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (!common.hasCrypto)
66
const assert = require('assert');
77
const h2 = require('http2');
88

9-
// Tests behaviour of the proxied socket in Http2ServerRequest
9+
// Tests behavior of the proxied socket in Http2ServerRequest
1010
// & Http2ServerResponse - specifically property setters
1111

1212
const errMsg = {
Collapse file

‎test/parallel/test-http2-compat-socket.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http2-compat-socket.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const assert = require('assert');
77
const h2 = require('http2');
88
const net = require('net');
99

10-
// Tests behaviour of the proxied socket in Http2ServerRequest
10+
// Tests behavior of the proxied socket in Http2ServerRequest
1111
// & Http2ServerResponse - this proxy socket should mimic the
12-
// behaviour of http1 but against the http2 api & model
12+
// behavior of http1 but against the http2 api & model
1313

1414
const errMsg = {
1515
code: 'ERR_HTTP2_NO_SOCKET_MANIPULATION',

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.