Skip to content

Commit 1289cbd

Browse files
narirougibfahn
authored andcommitted
doc: replace function with arrow function in vm.md
PR-URL: #17307 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 6ed8c28 commit 1289cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/vm.md

Lines changed: 1 addition & 1 deletion
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)