more clear leaf_count
This commit is contained in:
parent
84dc3bf73c
commit
9d4412103b
|
@ -29,7 +29,7 @@ impl Entry {
|
|||
|
||||
/// Number of leaves under this node.
|
||||
pub fn leaf_count(&self) -> u64 {
|
||||
self.data.end_height - self.data.start_height + 1
|
||||
self.data.end_height - (self.data.start_height - 1)
|
||||
}
|
||||
|
||||
/// Is this node a leaf.
|
||||
|
|
Loading…
Reference in New Issue