Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ahmad Afuni <[email protected]>
  • Loading branch information
arnaucube and ax0 authored Feb 12, 2025
1 parent 0782da0 commit cce08a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions book/src/merkletree.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ impl MerkleTree {
pub fn get(&self, key: &Value) -> Value;

/// returns a proof of existence, which proves that the given key exists in
/// the tree. It returns the `value` of the leaf at the given `key`, and
/// the `MerkleProof`.
/// the tree. It returns the `MerkleProof`.
fn prove(&self, key: &Value) -> Result<MerkleProof>;

/// returns a proof of non-existence, which proves that the given `key`
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/containers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::collections::HashMap;
use super::{Hash, Value, EMPTY};
use crate::primitives::merkletree::MerkleTree;

/// Contaiter is a wrapper of a MerkleTree, used to achieve Dictionary, Set, Array frontend types.
/// Container is a wrapper of a MerkleTree, used to achieve Dictionary, Set, Array frontend types.
pub trait Container {
type Raw: Clone;

Expand Down

0 comments on commit cce08a6

Please sign in to comment.