Skip to content

Commit 59a48c7

Browse files
kaffarellhds
authored andcommitted
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
1 parent d921d5f commit 59a48c7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tracing-subscriber/src/layer/context.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,10 @@ where
316316

317317
/// Returns an iterator over the [stored data] for all the spans in the
318318
/// current context, starting with the specified span and ending with the
319-
/// root of the trace tree and ending with the current span.
319+
/// root of the trace tree.
320320
///
321321
/// <pre class="ignore" style="white-space:normal;font:inherit;">
322-
/// <strong>Note</strong>: Compared to <a href="#method.scope"><code>scope</code></a> this
323-
/// returns the spans in reverse order (from leaf to root). Use
322+
/// <strong>Note</strong>: This returns the spans in reverse order (from leaf to root). Use
324323
/// <a href="../registry/struct.Scope.html#method.from_root"><code>Scope::from_root</code></a>
325324
/// in case root-to-leaf ordering is desired.
326325
/// </pre>

0 commit comments

Comments
 (0)