From 2916cb89777ae55f0ce82c704edfbf98d30b3a42 Mon Sep 17 00:00:00 2001 From: David Luis <95457148+babiabeo@users.noreply.github.com> Date: Sun, 29 Sep 2024 13:34:37 +0700 Subject: [PATCH] docs(log): correct the examples of `debug()` (#6077) docs(log): correct the examples of debug function --- log/debug.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log/debug.ts b/log/debug.ts index 98ee7246c..e43509bed 100644 --- a/log/debug.ts +++ b/log/debug.ts @@ -26,7 +26,7 @@ import "./setup.ts"; * assertEquals(debug("This is a debug message."), "This is a debug message."); * // Prints: "" * - * assertEquals(debug(() => "This is a debug message."), "This is a debug message."); + * assertEquals(debug(() => "This is a debug message."), undefined); * // Prints: "" * ``` * @@ -77,7 +77,7 @@ export function debug(msg: () => T, ...args: unknown[]): T | undefined; * assertEquals(debug("This is a debug message."), "This is a debug message."); * // Prints: "" * - * assertEquals(debug(() => "This is a debug message."), "This is a debug message."); + * assertEquals(debug(() => "This is a debug message."), undefined); * // Prints: "" * ``` *