Skip to content

Commit

Permalink
docs: fix typo in "ultimate question" example snippet (tokio-rs#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 Feb 1, 2022
1 parent 8bbd5d6 commit 1143858
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 @@ -415,7 +415,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 1143858

Please sign in to comment.