mirror of
https://github.com/vacp2p/zerokit.git
synced 2025-02-22 19:28:27 +00:00
chore: remove redundant words in comment (#274)
Signed-off-by: withbest <seekseat@outlook.com.>
This commit is contained in:
parent
e39f156fff
commit
00f8d039a8
@ -257,7 +257,7 @@ where
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Computes a merkle proof the the leaf at the specified index
|
// Computes a merkle proof the leaf at the specified index
|
||||||
fn proof(&self, leaf: usize) -> Result<FullMerkleProof<H>> {
|
fn proof(&self, leaf: usize) -> Result<FullMerkleProof<H>> {
|
||||||
if leaf >= self.capacity() {
|
if leaf >= self.capacity() {
|
||||||
return Err(Report::msg("index exceeds set size"));
|
return Err(Report::msg("index exceeds set size"));
|
||||||
|
@ -225,7 +225,7 @@ where
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Computes a merkle proof the the leaf at the specified index
|
// Computes a merkle proof the leaf at the specified index
|
||||||
fn proof(&self, index: usize) -> Result<Self::Proof> {
|
fn proof(&self, index: usize) -> Result<Self::Proof> {
|
||||||
if index >= self.capacity() {
|
if index >= self.capacity() {
|
||||||
return Err(Report::msg("index exceeds set size"));
|
return Err(Report::msg("index exceeds set size"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user