Skip to content

Commit

Permalink
doc: fix sync comment in observer snippet
Browse files Browse the repository at this point in the history
PR-URL: #41262
Refs: #41259
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
  • Loading branch information
erj826 authored and targos committed Jan 14, 2022
1 parent d62fe31 commit 5cfc547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/perf_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' });

Expand Down

0 comments on commit 5cfc547

Please sign in to comment.