Skip to content

Commit

Permalink
fix misleading comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fominok committed Dec 27, 2024
1 parent a771e6a commit bcdfbbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions path/src/subtree_path_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>)> {
match &self.relative {
SubtreePathRelative::Empty => self
Expand Down

0 comments on commit bcdfbbd

Please sign in to comment.