From 2ce83bd8f91dec603740cce216259f3f3ac1b364 Mon Sep 17 00:00:00 2001 From: Alexander Makarenko Date: Wed, 17 Feb 2016 14:40:55 +0300 Subject: [PATCH] http,util: fix typos in comments Fix several typos in comments. PR-URL: https://github.com/nodejs/node/pull/5279 Reviewed-By: James M Snell --- lib/_http_server.js | 2 +- lib/util.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/_http_server.js b/lib/_http_server.js index 7473008a1e8c31..dc72d76efccc1e 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -485,7 +485,7 @@ function connectionListener(socket) { } // When we're finished writing the response, check if this is the last - // respose, if so destroy the socket. + // response, if so destroy the socket. res.on('finish', resOnFinish); function resOnFinish() { // Usually the first incoming element should be our request. it may diff --git a/lib/util.js b/lib/util.js index c302bd9c0bf0ba..8cebbaa07516c2 100644 --- a/lib/util.js +++ b/lib/util.js @@ -77,7 +77,7 @@ exports.debuglog = function(set) { /** - * Echos the value of a value. Trys to print the value out + * Echos the value of a value. Tries to print the value out * in the best way possible given the different types. * * @param {Object} obj The object to print out. @@ -254,7 +254,7 @@ function formatValue(ctx, value, recurseTimes) { if (typeof raw === 'string') { // for boxed Strings, we have to remove the 0-n indexed entries, - // since they just noisey up the output and are redundant + // since they just noisy up the output and are redundant keys = keys.filter(function(key) { return !(key >= 0 && key < raw.length); });