Skip to content

Commit

Permalink
docs: fix typo in "ultimate question" example snippet (#1875)
Browse files Browse the repository at this point in the history
Since the formatting string is `"the answer to {} is {}.", question, answer`,
the value of `question` should be `"the ultimate question"`, not `"the answer to..."`.
  • Loading branch information
Vlad-Shcherbina authored and hawkw committed Feb 3, 2022
1 parent 51613a6 commit 63c004c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
//! ```
//! # use tracing::{event, Level};
//! # fn main() {
//! let question = "the answer to the ultimate question of life, the universe, and everything";
//! let question = "the ultimate question of life, the universe, and everything";
//! let answer = 42;
//! // records an event with the following fields:
//! // - `question.answer` with the value 42,
Expand Down

0 comments on commit 63c004c

Please sign in to comment.