chore: clarified assert message
This commit is contained in:
parent
7305a72295
commit
d6cbd178e1
1 changed files with 4 additions and 1 deletions
|
@ -108,7 +108,10 @@ impl MerkleTree {
|
|||
index.move_up();
|
||||
}
|
||||
|
||||
debug_assert!(index.is_root(), "the path must include the root");
|
||||
debug_assert!(
|
||||
index.is_root(),
|
||||
"the path walk must go all the way to the root"
|
||||
);
|
||||
|
||||
Ok(path.into())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue