From bb4c08641f3fcf3daf8777b264d2e8d447adac84 Mon Sep 17 00:00:00 2001 From: MaleDong Date: Sun, 21 Oct 2018 17:32:03 +0800 Subject: [PATCH] lib:fix grammar error and make it clearer for comments 1) Should be passive voice instead of `can overridden`. 2) Change the order of the two sentences to make it more clear about 'What can be overridden' instead of 'Can be overridden'. PR-URL: https://github.com/nodejs/node/pull/23799 Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- lib/repl.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/repl.js b/lib/repl.js index e02eb8493a6d89..d1cb41234f9e36 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -125,8 +125,9 @@ function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } -// Can overridden with custom print functions, such as `probe` or `eyes.js`. -// This is the default "writer" value if none is passed in the REPL options. +// This is the default "writer" value, if none is passed in the REPL options, +// and it can be overridden by custom print functions, such as `probe` or +// `eyes.js`. const writer = exports.writer = (obj) => util.inspect(obj, writer.options); writer.options = Object.assign({}, util.inspect.defaultOptions, { showProxy: true });