From 403d506cfe02a381cc8ee54c78f7cf71f9b321ed Mon Sep 17 00:00:00 2001 From: Christopher Durham Date: Wed, 27 Jul 2022 16:46:11 -0400 Subject: [PATCH] subscriber: `Not` is `not`, not `or` (#2249) ## Motivation Doc typo. ## Solution Fix. --- tracing-subscriber/src/filter/layer_filters/combinator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracing-subscriber/src/filter/layer_filters/combinator.rs b/tracing-subscriber/src/filter/layer_filters/combinator.rs index 669ddf63a7..745531de69 100644 --- a/tracing-subscriber/src/filter/layer_filters/combinator.rs +++ b/tracing-subscriber/src/filter/layer_filters/combinator.rs @@ -40,11 +40,11 @@ pub struct Or { /// If the wrapped filter would enable a span or event, it will be disabled. If /// it would disable a span or event, that span or event will be enabled. /// -/// This type is typically returned by the [`FilterExt::or`] method. See that +/// This type is typically returned by the [`FilterExt::not`] method. See that /// method's documentation for details. /// /// [`Filter`]: crate::layer::Filter -/// [`FilterExt::or`]: crate::filter::FilterExt::or +/// [`FilterExt::not`]: crate::filter::FilterExt::not pub struct Not { a: A, _s: PhantomData,