From 491eb66cdc57732c2b5e1d0eaa0e9337b50196ea Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Tue, 11 Mar 2025 23:02:17 +0900 Subject: [PATCH] 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 Reviewed-By: Jason Zhang Reviewed-By: James M Snell Reviewed-By: Yagiz Nizipli Reviewed-By: Zijian Liu --- doc/api/util.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/util.md b/doc/api/util.md index 7f15d418be..8210f33a2a 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -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])`