Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bvrooman committed Jan 8, 2022
1 parent 6d44a7c commit d132470
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/common/position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ impl Position {
!self.is_leaf()
}

/// Given a leaf position and the total count of leaves in a tree, get the path from the path
/// from this position to the given leaf.
/// Given a leaf position and the total count of leaves in a tree, get the path from this
/// position to the given leaf position. The shape of the tree is defined by the `leaves_count`
/// parameter and constrains the path.
/// See [PositionPath](crate::common::PositionPath).
pub fn path(self, leaf: &Self, leaves_count: u64) -> PositionPath {
PositionPath::new(self, *leaf, leaves_count)
Expand Down

0 comments on commit d132470

Please sign in to comment.