From e852c4bff334601047506bfef3779fb54851cf4d Mon Sep 17 00:00:00 2001 From: Gabriel Goller Date: Sun, 10 Dec 2023 12:46:49 +0100 Subject: [PATCH] fix: subscriber docs small typos Fixes: #2819 --- tracing-subscriber/src/fmt/writer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tracing-subscriber/src/fmt/writer.rs b/tracing-subscriber/src/fmt/writer.rs index fcd529a563..011d3bc300 100644 --- a/tracing-subscriber/src/fmt/writer.rs +++ b/tracing-subscriber/src/fmt/writer.rs @@ -243,7 +243,7 @@ pub trait MakeWriterExt<'a>: MakeWriter<'a> { /// use tracing_subscriber::fmt::writer::MakeWriterExt; /// /// // Construct a writer that outputs events to `stderr` only if the span or - /// // event's level is >= WARN (WARN and ERROR). + /// // event's level is <= WARN (WARN and ERROR). /// let mk_writer = std::io::stderr.with_max_level(Level::WARN); /// /// tracing_subscriber::fmt().with_writer(mk_writer).init(); @@ -307,7 +307,7 @@ pub trait MakeWriterExt<'a>: MakeWriter<'a> { /// use tracing_subscriber::fmt::writer::MakeWriterExt; /// /// // Construct a writer that outputs events to `stdout` only if the span or - /// // event's level is <= DEBUG (DEBUG and TRACE). + /// // event's level is >= DEBUG (DEBUG and TRACE). /// let mk_writer = std::io::stdout.with_min_level(Level::DEBUG); /// /// tracing_subscriber::fmt().with_writer(mk_writer).init(); @@ -454,7 +454,7 @@ pub trait MakeWriterExt<'a>: MakeWriter<'a> { /// use tracing::Level; /// use tracing_subscriber::fmt::writer::MakeWriterExt; /// - /// // Produces a writer that writes to `stderr` if the level is >= WARN, + /// // Produces a writer that writes to `stderr` if the level is <= WARN, /// // or returns `OptionalWriter::none()` otherwise. /// let stderr = std::io::stderr.with_max_level(Level::WARN); ///