Skip to content

Commit b4c8158

Browse files
MaleDongtargos
MaleDong
authored andcommitted
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: #23799 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent cd227eb commit b4c8158

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/repl.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ function hasOwnProperty(obj, prop) {
126126
return Object.prototype.hasOwnProperty.call(obj, prop);
127127
}
128128

129-
// Can overridden with custom print functions, such as `probe` or `eyes.js`.
130-
// This is the default "writer" value if none is passed in the REPL options.
129+
// This is the default "writer" value, if none is passed in the REPL options,
130+
// and it can be overridden by custom print functions, such as `probe` or
131+
// `eyes.js`.
131132
const writer = exports.writer = (obj) => util.inspect(obj, writer.options);
132133
writer.options = Object.assign({},
133134
util.inspect.defaultOptions,

0 commit comments

Comments
 (0)