From 7643c2a076a7f9e6262ef1813ec01f46c994f46b Mon Sep 17 00:00:00 2001 From: xiaoyao <15558110117@163.com> Date: Sat, 29 Nov 2025 10:18:49 +0800 Subject: [PATCH] doc: update debuglog examples to use 'foo-bar' instead of 'foo' PR-URL: https://github.com/nodejs/node/pull/60867 Reviewed-By: Deokjin Kim Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- doc/api/util.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index cd06da633c..f8eb418191 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -135,14 +135,14 @@ The `section` supports wildcard also: ```mjs import { debuglog } from 'node:util'; -const log = debuglog('foo'); +const log = debuglog('foo-bar'); log('hi there, it\'s foo-bar [%d]', 2333); ``` ```cjs const { debuglog } = require('node:util'); -const log = debuglog('foo'); +const log = debuglog('foo-bar'); log('hi there, it\'s foo-bar [%d]', 2333); ```