From 2ff488b679a7b5ee010ea949d6072ebd50f286ca Mon Sep 17 00:00:00 2001 From: MoonsvnLyn <287222957+FirmaSpring@users.noreply.github.com> Date: Mon, 17 Aug 2026 17:50:07 +0800 Subject: [PATCH] docs: fix hex example to match the Buffer it formats Co-authored-by: FirmamentalSpring <287222957+FirmaSpring@users.noreply.github.com> --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 654d105a..fe2380b2 100644 --- a/README.md +++ b/README.md @@ -207,8 +207,8 @@ createDebug.formatters.h = (v) => { // …elsewhere const debug = createDebug('foo') -debug('this is hex: %h', new Buffer('hello world')) -// foo this is hex: 68656c6c6f20776f726c6421 +0ms +debug('this is hex: %h', Buffer.from('hello world')) +// foo this is hex: 68656c6c6f20776f726c64 +0ms ```