From 6187b00c6e6ddd9100041ee5bdea89315138000e Mon Sep 17 00:00:00 2001 From: Gabriel Goller Date: Thu, 29 Feb 2024 13:51:11 +0100 Subject: [PATCH] docs: remove non-existing method in comments In the documentation of the layer context span_scope method, the note contained a reference to a `scope()` method, which was removed some time ago. Also fixed a phrasing error above. Fixes: #2890 --- tracing-subscriber/src/subscribe/context.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tracing-subscriber/src/subscribe/context.rs b/tracing-subscriber/src/subscribe/context.rs index 183e1ceccb..d322d5dffa 100644 --- a/tracing-subscriber/src/subscribe/context.rs +++ b/tracing-subscriber/src/subscribe/context.rs @@ -315,15 +315,14 @@ where /// Returns an iterator over the [stored data] for all the spans in the /// current context, starting with the specified span and ending with the - /// root of the trace tree and ending with the current span. + /// root of the trace tree. /// ///
///
Note
///
///
///
-    /// Note: Compared to scope this
-    /// returns the spans in reverse order (from leaf to root). Use
+    /// Note: This returns the spans in reverse order (from leaf to root). Use
     /// Scope::from_root
     /// in case root-to-leaf ordering is desired.
     ///