From 93bbb2946ae2e4aa4b3d6856891490415e55be99 Mon Sep 17 00:00:00 2001 From: Mani Maghsoudlou Date: Thu, 14 Sep 2017 01:36:49 -0700 Subject: [PATCH] doc: fix entryTypes type and missing link PR-URL: https://github.com/nodejs/node/pull/15406 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater --- doc/api/perf_hooks.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index bccc99c18e..c6705e9009 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -202,7 +202,7 @@ const obs = new PerformanceObserver((list) => { obs.disconnect(); performance.clearFunctions(); }); -obs.observe({ entryTypes: 'function' }); +obs.observe({ entryTypes: ['function'] }); // A performance timeline entry will be created wrapped(); @@ -655,4 +655,5 @@ require('some-module'); ``` [`timeOrigin`]: https://w3c.github.io/hr-time/#dom-performance-timeorigin +[Async Hooks]: async_hooks.html [W3C Performance Timeline]: https://w3c.github.io/performance-timeline/