◐ Shell
clean mode source ↗

doc: make first parameter optional in `util.getCallSites` · nodejs/node@1c271b1

Commit 1c271b1

deokjinkimtargos

authored and

committed

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 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion

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