From 329d8d308773a307432916d61e5ba0948d8c9568 Mon Sep 17 00:00:00 2001 From: Gabriel Goller Date: Sat, 25 May 2024 22:54:05 +0200 Subject: [PATCH] docs: remove non-existing method in comments (#2894) 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/layer/context.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tracing-subscriber/src/layer/context.rs b/tracing-subscriber/src/layer/context.rs index 46254994..5ab6f848 100644 --- a/tracing-subscriber/src/layer/context.rs +++ b/tracing-subscriber/src/layer/context.rs @@ -316,11 +316,10 @@ 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: 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.
     ///