Skip to content

Commit

Permalink
Fix #10581std.logger has an ostensibly broken example and wrong …
Browse files Browse the repository at this point in the history
…docs

Co-authored-by: Elias Batek <desisma@heidel.beer>
  • Loading branch information
2 people authored and dlang-bot committed Dec 11, 2024
1 parent b2ecb21 commit 8973596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/logger/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The easiest way to create a log message is to write:
import std.logger;
void main() {
log("Hello World");
info("Hello World");
}
-------------
This will print a message to the `stderr` device. The message will contain
Expand Down Expand Up @@ -59,7 +59,7 @@ $(UL
$(LI `fatal`)
)
The default `Logger` will by default log to `stderr` and has a default
`LogLevel` of `LogLevel.all`. The default Logger can be accessed by
`LogLevel` of `LogLevel.info`. The default Logger can be accessed by
using the property called `sharedLog`. This property is a reference to the
current default `Logger`. This reference can be used to assign a new
default `Logger`.
Expand Down

0 comments on commit 8973596

Please sign in to comment.