Skip to content

Commit bc55b57

Browse files
lundibundiaddaleax
authored andcommitted
lib: fix few comment typos in fs/watchers.js
PR-URL: #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>
1 parent 9da57a8 commit bc55b57

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/internal/fs/watchers.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ StatWatcher.prototype[kFSStatWatcherStart] = function(filename,
7878
this._handle.unref();
7979

8080
// uv_fs_poll is a little more powerful than ev_stat but we curb it for
81-
// the sake of backwards compatibility
81+
// the sake of backwards compatibility.
8282
this[kOldStatus] = -1;
8383

8484
filename = getValidatedPath(filename, 'filename');
@@ -95,9 +95,9 @@ StatWatcher.prototype[kFSStatWatcherStart] = function(filename,
9595
}
9696
};
9797

98-
// To maximize backward-compatiblity for the end user,
98+
// To maximize backward-compatibility for the end user,
9999
// a no-op stub method has been added instead of
100-
// totally removing StatWatcher.prototpye.start.
100+
// totally removing StatWatcher.prototype.start.
101101
// This should not be documented.
102102
StatWatcher.prototype.start = () => {};
103103

@@ -133,7 +133,7 @@ function FSWatcher() {
133133
if (this._handle !== null) {
134134
// We don't use this.close() here to avoid firing the close event.
135135
this._handle.close();
136-
this._handle = null; // Make the handle garbage collectable
136+
this._handle = null; // Make the handle garbage collectable.
137137
}
138138
const error = errors.uvException({
139139
errno: status,
@@ -187,9 +187,9 @@ FSWatcher.prototype[kFSWatchStart] = function(filename,
187187
}
188188
};
189189

190-
// To maximize backward-compatiblity for the end user,
190+
// To maximize backward-compatibility for the end user,
191191
// a no-op stub method has been added instead of
192-
// totally removing FSWatcher.prototpye.start.
192+
// totally removing FSWatcher.prototype.start.
193193
// This should not be documented.
194194
FSWatcher.prototype.start = () => {};
195195

@@ -204,7 +204,7 @@ FSWatcher.prototype.close = function() {
204204
return;
205205
}
206206
this._handle.close();
207-
this._handle = null; // Make the handle garbage collectable
207+
this._handle = null; // Make the handle garbage collectable.
208208
process.nextTick(emitCloseNT, this);
209209
};
210210

0 commit comments

Comments
 (0)