Skip to content

Commit f281b19

Browse files
vsemozhetbytevanlucas
authored andcommitted
doc: fix a function name in repl.md
`eval` => `myEval` to not shadow the global `eval` PR-URL: #10244 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent b8e2711 commit f281b19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/repl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ multi-line input, the eval function can return an instance of `repl.Recoverable`
186186
to the provided callback function:
187187

188188
```js
189-
function eval(cmd, context, filename, callback) {
189+
function myEval(cmd, context, filename, callback) {
190190
let result;
191191
try {
192192
result = vm.runInThisContext(cmd);

0 commit comments

Comments
 (0)