From 63c004cd1c847f10f280e966dece2475fb447d85 Mon Sep 17 00:00:00 2001 From: Vlad-Shcherbina Date: Tue, 1 Feb 2022 22:20:37 +0300 Subject: [PATCH] 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..."`. --- tracing/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracing/src/lib.rs b/tracing/src/lib.rs index f13fd0fd5e..b43fd30b8d 100644 --- a/tracing/src/lib.rs +++ b/tracing/src/lib.rs @@ -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,