From f80f09f5affb4fc049f393e7e89d8428ea61a78c Mon Sep 17 00:00:00 2001 From: YoonSoo_Shin <89785501+MCprotein@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:58:40 +0900 Subject: [PATCH] lib: fix typos in comments within internal/streams fixed typos in comments within the internal/streams directory. PR-URL: https://github.com/nodejs/node/pull/54093 Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina Reviewed-By: Jake Yuesong Li Reviewed-By: Trivikram Kamat --- lib/internal/streams/readable.js | 2 +- lib/internal/streams/transform.js | 2 +- lib/internal/streams/utils.js | 2 +- lib/internal/streams/writable.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/internal/streams/readable.js b/lib/internal/streams/readable.js index ff07a2fd89afe0..b97c54bee3ed27 100644 --- a/lib/internal/streams/readable.js +++ b/lib/internal/streams/readable.js @@ -258,7 +258,7 @@ ObjectDefineProperties(ReadableState.prototype, { function ReadableState(options, stream, isDuplex) { - // Bit map field to store ReadableState more effciently with 1 bit per field + // Bit map field to store ReadableState more efficiently with 1 bit per field // instead of a V8 slot per field. this[kState] = kEmitClose | kAutoDestroy | kConstructed | kSync; diff --git a/lib/internal/streams/transform.js b/lib/internal/streams/transform.js index 42e1adda618b87..2f4d498bc780a3 100644 --- a/lib/internal/streams/transform.js +++ b/lib/internal/streams/transform.js @@ -180,7 +180,7 @@ Transform.prototype._write = function(chunk, encoding, callback) { if (rState.ended) { // If user has called this.push(null) we have to - // delay the callback to properly progate the new + // delay the callback to properly propagate the new // state. process.nextTick(callback); } else if ( diff --git a/lib/internal/streams/utils.js b/lib/internal/streams/utils.js index 2c6b841a89e6e5..88c0ca87bc63f1 100644 --- a/lib/internal/streams/utils.js +++ b/lib/internal/streams/utils.js @@ -8,7 +8,7 @@ const { } = primordials; // We need to use SymbolFor to make these globally available -// for interopt with readable-stream, i.e. readable-stream +// for interoperability with readable-stream, i.e. readable-stream // and node core needs to be able to read/write private state // from each other for proper interoperability. const kIsDestroyed = SymbolFor('nodejs.stream.destroyed'); diff --git a/lib/internal/streams/writable.js b/lib/internal/streams/writable.js index 16e49cb59517e0..103b9eaa72ffad 100644 --- a/lib/internal/streams/writable.js +++ b/lib/internal/streams/writable.js @@ -300,7 +300,7 @@ ObjectDefineProperties(WritableState.prototype, { }); function WritableState(options, stream, isDuplex) { - // Bit map field to store WritableState more effciently with 1 bit per field + // Bit map field to store WritableState more efficiently with 1 bit per field // instead of a V8 slot per field. this[kState] = kSync | kConstructed | kEmitClose | kAutoDestroy;