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:
Deokjin Kim authored and RafaelGSS committed 2025-05-02 17:05:09 -03:00
1 parent 6ae341a654
commit 38989b070a
1 file changed
+1 -1
+1 -1
View File
@@ -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