Skip to content

Commit d4cd8c2

Browse files
committed
doc: use American spellings per style guide
PR-URL: #17471 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 3d64533 commit d4cd8c2

17 files changed

+21
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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

common.gypi

Lines 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',

lib/internal/repl.js

Lines 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;

lib/internal/trace_events_async_hooks.js

Lines 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);

src/node_buffer.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ void IndexOfString(const FunctionCallbackInfo<Value>& args) {
985985
is_forward);
986986

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

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

test/addons-napi/test_handle_scope/test_handle_scope.c

Lines 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

test/addons-napi/test_number/test.js

Lines 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));

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ assert.throws(function() { spawn(cmd, s); }, invalidArgTypeError);
116116
assert.throws(function() { spawn(cmd, a, s); }, invalidArgTypeError);
117117

118118

119-
// verify that execFile has same argument parsing behaviour as spawn
119+
// verify that execFile has same argument parsing behavior as spawn
120120
//
121121
// function execFile(file=f [,args=a] [, options=o] [, callback=c]) has valid
122122
// combinations:
@@ -176,7 +176,7 @@ assert.throws(function() { execFile(cmd, n, o, s); }, invalidArgValueError);
176176
assert.doesNotThrow(function() { execFile(cmd, c, s); });
177177

178178

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

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

Lines 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 = {

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

Lines 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)