more clear leaf_count

This commit is contained in:
NikVolf
2019-10-11 08:00:07 +03:00
parent 84dc3bf73c
commit 9d4412103b

View File

@@ -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.