more idiomatic naming

This commit is contained in:
NikVolf
2019-09-25 09:53:06 +02:00
parent 443f45f430
commit da0d0a669a
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ impl Entry {
}
/// Is this node a leaf.
pub fn is_leaf(&self) -> bool {
pub fn leaf(&self) -> bool {
if let EntryKind::Leaf = self.kind { true } else { false }
}