Skip to content

Commit

Permalink
doc fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jul 6, 2023
1 parent b4e823b commit 2e0efee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/barretenberg/stdlib/merkle_tree/merkle_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ template <typename Store> fr_hash_path MerkleTree<Store>::get_hash_path(index_t
}
} else {
// Requesting path to a different, independent element.
// We know that this element exits in an empty subtree, of height determined by the common bits in the
// We know that this element exists in an empty subtree, of height determined by the common bits in the
// stumps index and the requested index.
size_t common_bits = numeric::count_leading_zeros(diff);
size_t common_height = sizeof(index_t) * 8 - common_bits - 1;
Expand Down Expand Up @@ -177,7 +177,7 @@ template <typename Store> fr_sibling_path MerkleTree<Store>::get_sibling_path(in
path[0] = current;
} else if (diff > 1) {
// Requesting path to a different, independent element.
// We know that this element exits in an empty subtree, of height determined by the common bits in the
// We know that this element exists in an empty subtree, of height determined by the common bits in the
// stumps index and the requested index.
size_t common_bits = numeric::count_leading_zeros(diff);
size_t common_height = sizeof(index_t) * 8 - common_bits - 1;
Expand Down

0 comments on commit 2e0efee

Please sign in to comment.