Skip to content

Commit 6356fd2

Browse files
MaleDongcodebytere
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 <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 17eff1c commit 6356fd2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/repl.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ function hasOwnProperty(obj, prop) {
125125
return Object.prototype.hasOwnProperty.call(obj, prop);
126126
}
127127

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

0 commit comments

Comments
 (0)