Skip to content

Commit b020d97

Browse files
committed
docs: Fix infostrings
1 parent c2d8b0d commit b020d97

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@
3232
//!
3333
//! Assumes the binary is `main`:
3434
//!
35-
//! ```{.bash}
35+
//! ```console
3636
//! $ RUST_LOG=error ./main
3737
//! [2017-11-09T02:12:24Z ERROR main] this is printed by default
3838
//! ```
3939
//!
40-
//! ```{.bash}
40+
//! ```console
4141
//! $ RUST_LOG=info ./main
4242
//! [2017-11-09T02:12:24Z ERROR main] this is printed by default
4343
//! [2017-11-09T02:12:24Z INFO main] the answer was: 12
4444
//! ```
4545
//!
46-
//! ```{.bash}
46+
//! ```console
4747
//! $ RUST_LOG=debug ./main
4848
//! [2017-11-09T02:12:24Z DEBUG main] this is a debug message
4949
//! [2017-11-09T02:12:24Z ERROR main] this is printed by default
@@ -52,15 +52,15 @@
5252
//!
5353
//! You can also set the log level on a per module basis:
5454
//!
55-
//! ```{.bash}
55+
//! ```console
5656
//! $ RUST_LOG=main=info ./main
5757
//! [2017-11-09T02:12:24Z ERROR main] this is printed by default
5858
//! [2017-11-09T02:12:24Z INFO main] the answer was: 12
5959
//! ```
6060
//!
6161
//! And enable all logging:
6262
//!
63-
//! ```{.bash}
63+
//! ```console
6464
//! $ RUST_LOG=main ./main
6565
//! [2017-11-09T02:12:24Z DEBUG main] this is a debug message
6666
//! [2017-11-09T02:12:24Z ERROR main] this is printed by default
@@ -70,7 +70,7 @@
7070
//! If the binary name contains hyphens, you will need to replace
7171
//! them with underscores:
7272
//!
73-
//! ```{.bash}
73+
//! ```console
7474
//! $ RUST_LOG=my_app ./my-app
7575
//! [2017-11-09T02:12:24Z DEBUG my_app] this is a debug message
7676
//! [2017-11-09T02:12:24Z ERROR my_app] this is printed by default
@@ -88,14 +88,14 @@
8888
//! **By default all logging is disabled except for the `error` level**
8989
//!
9090
//! The **`RUST_LOG`** environment variable controls logging with the syntax:
91-
//! ```text
91+
//! ```console
9292
//! RUST_LOG=[target][=][level][,...]
9393
//! ```
9494
//! Or in other words, its a comma-separated list of directives.
9595
//! Directives can filter by **target**, by **level**, or both (using `=`).
9696
//!
9797
//! For example,
98-
//! ```text
98+
//! ```console
9999
//! RUST_LOG=data=debug,hardware=debug
100100
//! ```
101101
//!

0 commit comments

Comments
 (0)