Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Otrishko <shishugi@gmail.com>2020-02-09 12:38:45 +0300
committerAnna Henningsen <anna@addaleax.net>2020-02-13 23:19:23 +0300
commitbc55b57e64a374e5b677644c857c3d26247c72ef (patch)
treef314c46f0b362121f490446265287ab040650e2e /lib/internal/fs
parent9da57a86ee7d9cb7b27ab8fa9ee241dc047bbd0e (diff)
lib: fix few comment typos in fs/watchers.js
PR-URL: https://github.com/nodejs/node/pull/31705 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/internal/fs')
-rw-r--r--lib/internal/fs/watchers.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/internal/fs/watchers.js b/lib/internal/fs/watchers.js
index 59f8bfcebcd..118f85d9ada 100644
--- a/lib/internal/fs/watchers.js
+++ b/lib/internal/fs/watchers.js
@@ -78,7 +78,7 @@ StatWatcher.prototype[kFSStatWatcherStart] = function(filename,
this._handle.unref();
// uv_fs_poll is a little more powerful than ev_stat but we curb it for
- // the sake of backwards compatibility
+ // the sake of backwards compatibility.
this[kOldStatus] = -1;
filename = getValidatedPath(filename, 'filename');
@@ -95,9 +95,9 @@ StatWatcher.prototype[kFSStatWatcherStart] = function(filename,
}
};
-// To maximize backward-compatiblity for the end user,
+// To maximize backward-compatibility for the end user,
// a no-op stub method has been added instead of
-// totally removing StatWatcher.prototpye.start.
+// totally removing StatWatcher.prototype.start.
// This should not be documented.
StatWatcher.prototype.start = () => {};
@@ -133,7 +133,7 @@ function FSWatcher() {
if (this._handle !== null) {
// We don't use this.close() here to avoid firing the close event.
this._handle.close();
- this._handle = null; // Make the handle garbage collectable
+ this._handle = null; // Make the handle garbage collectable.
}
const error = errors.uvException({
errno: status,
@@ -187,9 +187,9 @@ FSWatcher.prototype[kFSWatchStart] = function(filename,
}
};
-// To maximize backward-compatiblity for the end user,
+// To maximize backward-compatibility for the end user,
// a no-op stub method has been added instead of
-// totally removing FSWatcher.prototpye.start.
+// totally removing FSWatcher.prototype.start.
// This should not be documented.
FSWatcher.prototype.start = () => {};
@@ -204,7 +204,7 @@ FSWatcher.prototype.close = function() {
return;
}
this._handle.close();
- this._handle = null; // Make the handle garbage collectable
+ this._handle = null; // Make the handle garbage collectable.
process.nextTick(emitCloseNT, this);
};