Skip to content

Commit 69f487e

Browse files
authoredNov 12, 2021
lib: fix typos in lib code comments
PR-URL: nodejs#40792 Reviewed-By: Voltrex <[email protected]> Reviewed-By: Qingyu Deng <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent d10085b commit 69f487e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎lib/_http_incoming.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ IncomingMessage.prototype._destroy = function _destroy(err, cb) {
182182
// If aborted and the underlying socket is not already destroyed,
183183
// destroy it.
184184
// We have to check if the socket is already destroyed because finished
185-
// does not call the callback when this methdod is invoked from `_http_client`
185+
// does not call the callback when this method is invoked from `_http_client`
186186
// in `test/parallel/test-http-client-spurious-aborted.js`
187187
if (this.socket && !this.socket.destroyed && this.aborted) {
188188
this.socket.destroy(err);

‎lib/events.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function emitUnhandledRejectionOrErr(ee, err, type, args) {
242242
// we might end up in an infinite loop.
243243
const prev = ee[kCapture];
244244

245-
// If the error handler throws, it is not catcheable and it
245+
// If the error handler throws, it is not catchable and it
246246
// will end up in 'uncaughtException'. We restore the previous
247247
// value of kCapture in case the uncaughtException is present
248248
// and the exception is handled.

‎lib/path.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ const win32 = {
485485
},
486486

487487
/**
488-
* It will solve the relative path from `from` to `to`, for instancee
488+
* It will solve the relative path from `from` to `to`, for instance
489489
* from = 'C:\\orandea\\test\\aaa'
490490
* to = 'C:\\orandea\\impl\\bbb'
491491
* The output of the function should be: '..\\..\\impl\\bbb'

0 commit comments

Comments
 (0)
Please sign in to comment.