Skip to content

Commit 657d7a5

Browse files
sadnessOjisanrvagg
authored andcommitted
doc: use arrow function
PR-URL: #24590 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
1 parent f80e7a1 commit 657d7a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/v8.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Usage:
156156
// Print GC events to stdout for one minute.
157157
const v8 = require('v8');
158158
v8.setFlagsFromString('--trace_gc');
159-
setTimeout(function() { v8.setFlagsFromString('--notrace_gc'); }, 60e3);
159+
setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3);
160160
```
161161

162162
## Serialization API

0 commit comments

Comments
 (0)