Skip to content

Commit 1c271b1

Browse files
deokjinkimtargos
authored andcommitted
doc: make first parameter optional in util.getCallSites
`frameCount` is optional because its default value is 10. And change parameter name from `frameCountOrOptions` to `frameCount` because it's described as `frameCount` in below description. PR-URL: #57387 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
1 parent 4fe9916 commit 1c271b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/util.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 });
450450
// when printed to a terminal.
451451
```
452452

453-
## `util.getCallSites(frameCountOrOptions, [options])`
453+
## `util.getCallSites([frameCount][, options])`
454454

455455
<!-- YAML
456456
added: v22.9.0

0 commit comments

Comments
 (0)