mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
baf989ba11
commit
491eb66cdc
@ -450,7 +450,7 @@ util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 });
|
||||
// when printed to a terminal.
|
||||
```
|
||||
|
||||
## `util.getCallSites(frameCountOrOptions, [options])`
|
||||
## `util.getCallSites([frameCount][, options])`
|
||||
|
||||
<!-- YAML
|
||||
added: v22.9.0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user