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 danielleadams committed Feb 1, 2022
1 parent 12c5333 commit 1c0c140
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 1c0c140

Please sign in to comment.