From 657d7a5f9deeb8541c020b6b92d196dd854d47dd Mon Sep 17 00:00:00 2001 From: sadness_ojisan Date: Sat, 24 Nov 2018 16:00:12 +0900 Subject: [PATCH] doc: use arrow function PR-URL: https://github.com/nodejs/node/pull/24590 Reviewed-By: Gireesh Punathil Reviewed-By: Anna Henningsen Reviewed-By: Vse Mozhet Byt --- doc/api/v8.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/v8.md b/doc/api/v8.md index 6ce474a9baea30..c284161d423942 100644 --- a/doc/api/v8.md +++ b/doc/api/v8.md @@ -156,7 +156,7 @@ Usage: // Print GC events to stdout for one minute. const v8 = require('v8'); v8.setFlagsFromString('--trace_gc'); -setTimeout(function() { v8.setFlagsFromString('--notrace_gc'); }, 60e3); +setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3); ``` ## Serialization API