From bcdfbbda9488876828c7fc34ecba623e4dd73cac Mon Sep 17 00:00:00 2001 From: Evgeny Fomin Date: Fri, 27 Dec 2024 14:22:51 +0100 Subject: [PATCH] fix misleading comment --- path/src/subtree_path_builder.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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