Skip to content

Commit 3bfca0b

Browse files
XhmikosRtargos
authored andcommitted
doc, lib, src, test, tools: fix assorted typos
PR-URL: #29075 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 5ea9237 commit 3bfca0b

10 files changed

+10
-10
lines changed

doc/api/https.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ changes:
4242
is specified using an IP address, in which case the default is `''` (no
4343
extension).
4444

45-
See [`Session Resumption`][] for infomation about TLS session reuse.
45+
See [`Session Resumption`][] for information about TLS session reuse.
4646

4747
## Class: https.Server
4848
<!-- YAML

lib/internal/timers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function insert(item, refed, start) {
307307
if (msecs < 0 || msecs === undefined)
308308
return;
309309

310-
// Truncate so that accuracy of sub-milisecond timers is not assumed.
310+
// Truncate so that accuracy of sub-millisecond timers is not assumed.
311311
msecs = Math.trunc(msecs);
312312

313313
item._idleStart = start;

src/node_process_object.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ MaybeLocal<Object> CreateProcessObject(Environment* env) {
125125
#endif // NODE_HAS_RELEASE_URLS
126126

127127
// process._rawDebug: may be overwritten later in JS land, but should be
128-
// availbale from the begining for debugging purposes
128+
// available from the beginning for debugging purposes
129129
env->SetMethod(process, "_rawDebug", RawDebug);
130130

131131
return scope.Escape(process);

test/fixtures/es-modules/loop.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ console.log(message, 5);
66
while (t > 0) {
77
if (t++ === 1000) {
88
t = 0;
9-
console.log(`Outputed message #${k++}`);
9+
console.log(`Outputted message #${k++}`);
1010
}
1111
}
1212
process.exit(55);

test/parallel/test-timers-non-integer-delay.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const interval = setInterval(common.mustCall(() => {
7878
`Non-integer delay ordering should be ${expected}, but got ${ordering}`
7979
);
8080

81-
// 2 should always be last of these delays due to ordering guarentees by
81+
// 2 should always be last of these delays due to ordering guarantees by
8282
// the implementation.
8383
}), 2);
8484
}

test/parallel/test-timers-refresh.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const { inspect } = require('util');
2222
}), 1);
2323
timer.unref();
2424

25-
// This relies on implicit timers handle sorting withing libuv.
25+
// This relies on implicit timers handle sorting within libuv.
2626

2727
setTimeout(common.mustCall(() => {
2828
strictEqual(called, false, 'unref()\'d timer returned before check');

test/parallel/test-tls-socket-close.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const fixtures = require('../common/fixtures');
1313
// This test has a dependency on the order in which the TCP connection is made,
1414
// and TLS server handshake completes. It assumes those server side events occur
1515
// before the client side write callback, which is not guaranteed by the TLS
16-
// API. It usally passes with TLS1.3, but TLS1.3 didn't exist at the time the
16+
// API. It usually passes with TLS1.3, but TLS1.3 didn't exist at the time the
1717
// bug existed.
1818
//
1919
// Pin the test to TLS1.2, since the test shouldn't be changed in a way that

test/parallel/test-worker-cleanexit-with-js.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const common = require('../common');
66
// arbitrary execution points. By running a lot of
77
// JS code in a tight loop, the expectation
88
// is that those will be at various control flow points
9-
// preferrably in the JS land.
9+
// preferably in the JS land.
1010

1111
const { Worker } = require('worker_threads');
1212
const code = 'setInterval(() => {' +

test/parallel/test-worker-cleanexit-with-moduleload.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const common = require('../common');
66
// arbitrary execution points. By using a number of
77
// internal modules as load candidates, the expectation
88
// is that those will be at various control flow points
9-
// preferrably in the C++ land.
9+
// preferably in the C++ land.
1010

1111
const { Worker } = require('worker_threads');
1212
const modules = [ 'fs', 'assert', 'async_hooks', 'buffer', 'child_process',

tools/code_cache/cache_builder.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ std::string CodeCacheBuilder::Generate(Local<Context> context) {
127127
// TODO(joyeecheung): we can only compile the modules that can be
128128
// required here because the parameters for other types of builtins
129129
// are still very flexible. We should look into auto-generating
130-
// the paramters from the source somehow.
130+
// the parameters from the source somehow.
131131
if (loader->CanBeRequired(id.c_str())) {
132132
NativeModuleLoader::Result result;
133133
USE(loader->CompileAsModule(context, id.c_str(), &result));

0 commit comments

Comments
 (0)