docs(log): correct the examples of debug() (#6077)

docs(log): correct the examples of debug function
This commit is contained in:
David Luis 2024-09-29 13:34:37 +07:00 committed by GitHub
parent e9716720b6
commit 2916cb8977
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<T>(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: ""
* ```
*