From a4f609faf5a7fd42a3886e1273fe2af6ad5cb84d Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Sat, 27 Jul 2024 22:38:25 +0900 Subject: [PATCH] doc: make some parameters optional in `tracingChannel.traceCallback` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plus, add missing `position` parameter to CJS example. PR-URL: https://github.com/nodejs/node/pull/54068 Reviewed-By: Luigi Pinca Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Ulises Gascón Reviewed-By: Jake Yuesong Li --- doc/api/diagnostics_channel.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/diagnostics_channel.md b/doc/api/diagnostics_channel.md index 36ee045703016a..66f395fa70319e 100644 --- a/doc/api/diagnostics_channel.md +++ b/doc/api/diagnostics_channel.md @@ -872,7 +872,7 @@ channels.tracePromise(async () => { }); ``` -#### `tracingChannel.traceCallback(fn, position, context, thisArg, ...args)` +#### `tracingChannel.traceCallback(fn[, position[, context[, thisArg[, ...args]]]])`