Skip to content

Commit 1ad857e

Browse files
MCproteintargos
authored andcommittedOct 2, 2024
lib: fix typos in comments within internal/streams
fixed typos in comments within the internal/streams directory. PR-URL: #54093 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 76c3770 commit 1ad857e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎lib/internal/streams/readable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ ObjectDefineProperties(ReadableState.prototype, {
258258

259259

260260
function ReadableState(options, stream, isDuplex) {
261-
// Bit map field to store ReadableState more effciently with 1 bit per field
261+
// Bit map field to store ReadableState more efficiently with 1 bit per field
262262
// instead of a V8 slot per field.
263263
this[kState] = kEmitClose | kAutoDestroy | kConstructed | kSync;
264264

‎lib/internal/streams/transform.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Transform.prototype._write = function(chunk, encoding, callback) {
180180

181181
if (rState.ended) {
182182
// If user has called this.push(null) we have to
183-
// delay the callback to properly progate the new
183+
// delay the callback to properly propagate the new
184184
// state.
185185
process.nextTick(callback);
186186
} else if (

‎lib/internal/streams/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const {
88
} = primordials;
99

1010
// We need to use SymbolFor to make these globally available
11-
// for interopt with readable-stream, i.e. readable-stream
11+
// for interoperability with readable-stream, i.e. readable-stream
1212
// and node core needs to be able to read/write private state
1313
// from each other for proper interoperability.
1414
const kIsDestroyed = SymbolFor('nodejs.stream.destroyed');

‎lib/internal/streams/writable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ ObjectDefineProperties(WritableState.prototype, {
300300
});
301301

302302
function WritableState(options, stream, isDuplex) {
303-
// Bit map field to store WritableState more effciently with 1 bit per field
303+
// Bit map field to store WritableState more efficiently with 1 bit per field
304304
// instead of a V8 slot per field.
305305
this[kState] = kSync | kConstructed | kEmitClose | kAutoDestroy;
306306

0 commit comments

Comments
 (0)
Please sign in to comment.