diff --git a/tracing-core/src/event.rs b/tracing-core/src/event.rs index da45fa5ac7..70bd6658ca 100644 --- a/tracing-core/src/event.rs +++ b/tracing-core/src/event.rs @@ -118,7 +118,7 @@ impl<'a> Event<'a> { /// Returns the new event's explicitly-specified parent, if there is one. /// /// Otherwise (if the new event is a root or is a child of the current span), - /// returns false. + /// returns `None`. pub fn parent(&self) -> Option<&Id> { match self.parent { Parent::Explicit(ref p) => Some(p), diff --git a/tracing-core/src/span.rs b/tracing-core/src/span.rs index 837492d51f..1113eabe39 100644 --- a/tracing-core/src/span.rs +++ b/tracing-core/src/span.rs @@ -168,7 +168,7 @@ impl<'a> Attributes<'a> { /// Returns the new span's explicitly-specified parent, if there is one. /// /// Otherwise (if the new span is a root or is a child of the current span), - /// returns false. + /// returns `None`. pub fn parent(&self) -> Option<&Id> { match self.parent { Parent::Explicit(ref p) => Some(p),