From 4cb1e7c9c2a0c6971d0589d9794c4aa4d66bd48c Mon Sep 17 00:00:00 2001 From: Yoshiki Date: Sat, 13 Nov 2021 07:26:20 +0900 Subject: [PATCH] lib: fix typos in lib code comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/40792 Reviewed-By: Voltrex Reviewed-By: Qingyu Deng Reviewed-By: Daijiro Wachi Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca --- lib/_http_incoming.js | 2 +- lib/events.js | 2 +- lib/path.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/_http_incoming.js b/lib/_http_incoming.js index e0f1354e6c969c..383d50bb57875e 100644 --- a/lib/_http_incoming.js +++ b/lib/_http_incoming.js @@ -182,7 +182,7 @@ IncomingMessage.prototype._destroy = function _destroy(err, cb) { // If aborted and the underlying socket is not already destroyed, // destroy it. // We have to check if the socket is already destroyed because finished - // does not call the callback when this methdod is invoked from `_http_client` + // does not call the callback when this method is invoked from `_http_client` // in `test/parallel/test-http-client-spurious-aborted.js` if (this.socket && !this.socket.destroyed && this.aborted) { this.socket.destroy(err); diff --git a/lib/events.js b/lib/events.js index ef8090e57778e7..71776c6e8f6f00 100644 --- a/lib/events.js +++ b/lib/events.js @@ -242,7 +242,7 @@ function emitUnhandledRejectionOrErr(ee, err, type, args) { // we might end up in an infinite loop. const prev = ee[kCapture]; - // If the error handler throws, it is not catcheable and it + // If the error handler throws, it is not catchable and it // will end up in 'uncaughtException'. We restore the previous // value of kCapture in case the uncaughtException is present // and the exception is handled. diff --git a/lib/path.js b/lib/path.js index 21bed936cadf70..fd95361dd02842 100644 --- a/lib/path.js +++ b/lib/path.js @@ -485,7 +485,7 @@ const win32 = { }, /** - * It will solve the relative path from `from` to `to`, for instancee + * It will solve the relative path from `from` to `to`, for instance * from = 'C:\\orandea\\test\\aaa' * to = 'C:\\orandea\\impl\\bbb' * The output of the function should be: '..\\..\\impl\\bbb'