Skip to content

Commit 382ee01

Browse files
authored
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 6d319a0 commit 382ee01

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: tracing-subscriber/src/subscribe/context.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -315,15 +315,14 @@ where
315315

316316
/// Returns an iterator over the [stored data] for all the spans in the
317317
/// current context, starting with the specified span and ending with the
318-
/// root of the trace tree and ending with the current span.
318+
/// root of the trace tree.
319319
///
320320
/// <div class="information">
321321
/// <div class="tooltip ignore" style="">ⓘ<span class="tooltiptext">Note</span></div>
322322
/// </div>
323323
/// <div class="example-wrap" style="display:inline-block">
324324
/// <pre class="ignore" style="white-space:normal;font:inherit;">
325-
/// <strong>Note</strong>: Compared to <a href="#method.scope"><code>scope</code></a> this
326-
/// returns the spans in reverse order (from leaf to root). Use
325+
/// <strong>Note</strong>: This returns the spans in reverse order (from leaf to root). Use
327326
/// <a href="../registry/struct.Scope.html#method.from_root"><code>Scope::from_root</code></a>
328327
/// in case root-to-leaf ordering is desired.
329328
/// </pre></div>

0 commit comments

Comments
 (0)