mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
docs(log): correct the examples of debug()
(#6077)
docs(log): correct the examples of debug function
This commit is contained in:
parent
e9716720b6
commit
2916cb8977
@ -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: ""
|
||||
* ```
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user