Skip to content

Commit 346d6e6

Browse files
maddiemorthawkw
authored andcommitted
core: fix incorrect (incorrectly updated) docs for LevelFilter (#2767)
These docs were updated (in response to #1669), but the "or equal to" phrase should have been moved to the other case. Fixes: #1993 ## Motivation When these docs were updated in response to #1669, they were updated incompletely (a level that is equal to a filter is _enabled_, not _disabled_) and therefore remained incorrect. ## Solution The docs were updated, moving the "or equal to" phrase to the other case.
1 parent 8cdc9da commit 346d6e6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tracing-core/src/metadata.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,9 @@ pub struct Level(LevelInner);
222222

223223
/// A filter comparable to a verbosity [`Level`].
224224
///
225-
/// If a [`Level`] is considered less than a `LevelFilter`, it should be
226-
/// considered enabled; if greater than or equal to the `LevelFilter`,
227-
/// that level is disabled. See [`LevelFilter::current`] for more
228-
/// details.
225+
/// If a [`Level`] is considered less than or equal to a `LevelFilter`, it
226+
/// should be considered enabled; if greater than the `LevelFilter`, that level
227+
/// is disabled. See [`LevelFilter::current`] for more details.
229228
///
230229
/// Note that this is essentially identical to the `Level` type, but with the
231230
/// addition of an [`OFF`] level that completely disables all trace

0 commit comments

Comments
 (0)