diff --git a/path/src/subtree_path_builder.rs b/path/src/subtree_path_builder.rs index 6ac77977..f3a7d553 100644 --- a/path/src/subtree_path_builder.rs +++ b/path/src/subtree_path_builder.rs @@ -240,9 +240,9 @@ impl<'b, B: AsRef<[u8]>> SubtreePathBuilder<'b, B> { } } - /// Get a derived path for a parent and a chopped segment. Returned - /// [SubtreePath] will be linked to this [SubtreePath] because it might - /// contain owned data and it has to outlive [SubtreePath]. + /// Get a derived path for a parent and a chopped segment. The lifetime of returned path is + /// constrained solely by the original slice that this whole path hierarchy is based upon, and the point + /// of derivation has no effect on it. pub fn derive_parent_owned(&self) -> Option<(SubtreePathBuilder<'b, B>, Vec)> { match &self.relative { SubtreePathRelative::Empty => self