Skip to content

Commit

Permalink
doc: fix entryTypes type and missing link
Browse files Browse the repository at this point in the history
PR-URL: #15406
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
manidlou authored and jasnell committed Sep 20, 2017
1 parent 8c480f9 commit bdfed1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/perf_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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/

0 comments on commit bdfed1a

Please sign in to comment.