From 9a20a128305b95696a8de428afb223b21c9bb516 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 75750ca1cd6295..b752f5c67e6b9c 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -126,8 +126,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,