Skip to content

Commit 8418e53

Browse files
Vlad-Shcherbinahawkw
authored andcommitted
docs: fix typo in "ultimate question" example snippet (#1875)
Since the formatting string is `"the answer to {} is {}.", question, answer`, the value of `question` should be `"the ultimate question"`, not `"the answer to..."`.
1 parent 5bdcba5 commit 8418e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracing/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@
414414
//! ```
415415
//! # use tracing::{event, Level};
416416
//! # fn main() {
417-
//! let question = "the answer to the ultimate question of life, the universe, and everything";
417+
//! let question = "the ultimate question of life, the universe, and everything";
418418
//! let answer = 42;
419419
//! // records an event with the following fields:
420420
//! // - `question.answer` with the value 42,

0 commit comments

Comments
 (0)