diff --git a/minitrace/src/span.rs b/minitrace/src/span.rs index d4ab8375..df949a6d 100644 --- a/minitrace/src/span.rs +++ b/minitrace/src/span.rs @@ -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")]