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 f8a6098 commit d318774
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 d318774

Please sign in to comment.