fix: typos of different importance (#359)
This commit is contained in:
parent
c64f43b262
commit
1444bbc0f2
3 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ else
|
||||||
if git diff --exit-code "origin/${BASE_REF}" -- "${CHANGELOG_FILE}"; then
|
if git diff --exit-code "origin/${BASE_REF}" -- "${CHANGELOG_FILE}"; then
|
||||||
>&2 echo "Changes should come with an entry in the \"CHANGELOG.md\" file. This behavior
|
>&2 echo "Changes should come with an entry in the \"CHANGELOG.md\" file. This behavior
|
||||||
can be overridden by using the \"no changelog\" label, which is used for changes
|
can be overridden by using the \"no changelog\" label, which is used for changes
|
||||||
that are trivial / explicitely stated not to require a changelog entry."
|
that are trivial / explicitly stated not to require a changelog entry."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ pub const SMT_MAX_DEPTH: u8 = 64;
|
||||||
/// Every key maps to one leaf. If there are as many keys as there are leaves, then
|
/// Every key maps to one leaf. If there are as many keys as there are leaves, then
|
||||||
/// [Self::Leaf] should be the same type as [Self::Value], as is the case with
|
/// [Self::Leaf] should be the same type as [Self::Value], as is the case with
|
||||||
/// [crate::merkle::SimpleSmt]. However, if there are more keys than leaves, then [`Self::Leaf`]
|
/// [crate::merkle::SimpleSmt]. However, if there are more keys than leaves, then [`Self::Leaf`]
|
||||||
/// must accomodate all keys that map to the same leaf.
|
/// must accommodate all keys that map to the same leaf.
|
||||||
///
|
///
|
||||||
/// [SparseMerkleTree] currently doesn't support optimizations that compress Merkle proofs.
|
/// [SparseMerkleTree] currently doesn't support optimizations that compress Merkle proofs.
|
||||||
pub(crate) trait SparseMerkleTree<const DEPTH: u8> {
|
pub(crate) trait SparseMerkleTree<const DEPTH: u8> {
|
||||||
|
@ -133,7 +133,7 @@ pub(crate) trait SparseMerkleTree<const DEPTH: u8> {
|
||||||
node_hash = Rpo256::merge(&[left, right]);
|
node_hash = Rpo256::merge(&[left, right]);
|
||||||
|
|
||||||
if node_hash == *EmptySubtreeRoots::entry(DEPTH, node_depth) {
|
if node_hash == *EmptySubtreeRoots::entry(DEPTH, node_depth) {
|
||||||
// If a subtree is empty, when can remove the inner node, since it's equal to the
|
// If a subtree is empty, then can remove the inner node, since it's equal to the
|
||||||
// default value
|
// default value
|
||||||
self.remove_inner_node(index)
|
self.remove_inner_node(index)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -725,7 +725,7 @@ fn get_leaf_depth_works_with_depth_8() {
|
||||||
assert_eq!(8, store.get_leaf_depth(root, 8, k).unwrap());
|
assert_eq!(8, store.get_leaf_depth(root, 8, k).unwrap());
|
||||||
}
|
}
|
||||||
|
|
||||||
// flip last bit of a and expect it to return the the same depth, but for an empty node
|
// flip last bit of a and expect it to return the same depth, but for an empty node
|
||||||
assert_eq!(8, store.get_leaf_depth(root, 8, 0b01101000_u64).unwrap());
|
assert_eq!(8, store.get_leaf_depth(root, 8, 0b01101000_u64).unwrap());
|
||||||
|
|
||||||
// flip fourth bit of a and expect an empty node on depth 4
|
// flip fourth bit of a and expect an empty node on depth 4
|
||||||
|
|
Loading…
Add table
Reference in a new issue