Skip to content

Commit

Permalink
fix: subscriber docs small typos
Browse files Browse the repository at this point in the history
Fixes: #2819
  • Loading branch information
kaffarell committed May 22, 2024
1 parent ad5a71e commit 60eaef8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tracing-subscriber/src/fmt/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -455,7 +455,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);
///
Expand Down

0 comments on commit 60eaef8

Please sign in to comment.