mirror of https://github.com/vacp2p/pmtree.git
docs: add cargo-docs comment to new function
This commit is contained in:
parent
a312a50bff
commit
a6e15489ea
|
@ -344,7 +344,7 @@ where
|
|||
self.root() == expected_root
|
||||
}
|
||||
|
||||
// Returns the leaf by the key
|
||||
/// Returns the leaf by the key
|
||||
pub fn get(&self, key: usize) -> PmtreeResult<H::Fr> {
|
||||
if key >= self.capacity() {
|
||||
return Err(PmtreeErrorKind::TreeError(TreeErrorKind::IndexOutOfBounds));
|
||||
|
|
Loading…
Reference in New Issue