Skip to content

Commit 77368fc

Browse files
narirougibfahn
authored andcommitted
doc: replace function with arrow function in vm.md
PR-URL: #17307 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Yosuke Furukawa <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 5eb0c99 commit 77368fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/vm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ to the `http` module passed to it. For instance:
469469
const vm = require('vm');
470470

471471
const code = `
472-
(function(require) {
472+
((require) => {
473473
const http = require('http');
474474
475475
http.createServer((request, response) => {

0 commit comments

Comments
 (0)