From 5ad9ecfceece0b33633954b7e5b11bc8fc72c8d9 Mon Sep 17 00:00:00 2001 From: MCprotein Date: Mon, 29 Jul 2024 13:42:48 +0900 Subject: [PATCH 1/2] lib: fix typos in comments within internal/streams fixed typos in comments within the internal/streams directory. --- 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 1cba326970d4a8..fb587622550452 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 d7d76783274e2f..5d755ad10c850c 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 interoperate 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 96443f1c7898fb..ea89abf97c7604 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; From 1d5286845a69d6e4085edacc9a0e63bde2d87f03 Mon Sep 17 00:00:00 2001 From: MCprotein Date: Mon, 29 Jul 2024 15:03:36 +0900 Subject: [PATCH 2/2] lib: fix typos in comments within internal/streams fixed typos in comments within the internal/streams directory. --- lib/internal/streams/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/streams/utils.js b/lib/internal/streams/utils.js index 5d755ad10c850c..4b359279556592 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 interoperate 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');