Skip to content

Commit 90ef8e3

Browse files
authored
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 82a22ee commit 90ef8e3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tracing-core/src/metadata.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,9 @@ pub struct Level(LevelInner);
223223

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

0 commit comments

Comments
 (0)