Skip to content

Commit

Permalink
docs: remove non-existing method in comments
Browse files Browse the repository at this point in the history
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: tokio-rs#2890
  • Loading branch information
kaffarell committed Mar 4, 2024
1 parent 908cc43 commit 6187b00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tracing-subscriber/src/subscribe/context.rs
Expand Up @@ -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.
///
/// <div class="information">
/// <div class="tooltip ignore" style="">ⓘ<span class="tooltiptext">Note</span></div>
/// </div>
/// <div class="example-wrap" style="display:inline-block">
/// <pre class="ignore" style="white-space:normal;font:inherit;">
/// <strong>Note</strong>: Compared to <a href="#method.scope"><code>scope</code></a> this
/// returns the spans in reverse order (from leaf to root). Use
/// <strong>Note</strong>: This returns the spans in reverse order (from leaf to root). Use
/// <a href="../registry/struct.Scope.html#method.from_root"><code>Scope::from_root</code></a>
/// in case root-to-leaf ordering is desired.
/// </pre></div>
Expand Down

0 comments on commit 6187b00

Please sign in to comment.