Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andylokandy committed Aug 14, 2024
1 parent 8f21d9a commit 2b3b289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastrace/src/collector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl SpanContext {
/// use fastrace::prelude::*;
///
/// let span = Span::root("root", SpanContext::random());
/// let context = SpanContext::from_span(&span);
/// let span_context = SpanContext::from_span(&span);
/// ```
///
/// [`Span`]: crate::Span
Expand Down Expand Up @@ -184,7 +184,7 @@ impl SpanContext {
/// let span = Span::root("root", SpanContext::random());
/// let _guard = span.set_local_parent();
///
/// let context = SpanContext::current_local_parent();
/// let span_context = SpanContext::current_local_parent();
/// ```
pub fn current_local_parent() -> Option<Self> {
#[cfg(not(feature = "enable"))]
Expand Down

0 comments on commit 2b3b289

Please # to comment.