Skip to content

Commit

Permalink
chore: fix doc (#163)
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Lok <[email protected]>
  • Loading branch information
andylokandy authored Aug 24, 2023
1 parent ac7384e commit 0ca8cc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion minitrace/src/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ impl Span {
///
/// let mut root = Span::root("root", SpanContext::random());
///
/// // ..
/// root.cancel();
/// ```
#[inline]
pub fn cancel(&mut self) {
#[cfg(feature = "enable")]
Expand Down

0 comments on commit 0ca8cc8

Please sign in to comment.