From 5cfc547997c496387b1c490b26d024b2f6b50328 Mon Sep 17 00:00:00 2001 From: Eric Jacobson Date: Mon, 27 Dec 2021 12:08:46 -0500 Subject: [PATCH] doc: fix sync comment in observer snippet PR-URL: https://github.com/nodejs/node/pull/41262 Refs: https://github.com/nodejs/node/issues/41259 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Harshitha K P --- doc/api/perf_hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index d3978958c5081f..cbdd34bdb52830 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -647,7 +647,7 @@ const { } = require('perf_hooks'); const obs = new PerformanceObserver((list, observer) => { - // Called three times synchronously. `list` contains one item. + // Called once asynchronously. `list` contains three items. }); obs.observe({ type: 'mark' });