docs: add cargo-docs comment to new function

This commit is contained in:
Magamedrasul Ibragimov 2023-05-10 16:25:50 +04:00
parent a312a50bff
commit a6e15489ea
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ where
self.root() == expected_root 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> { pub fn get(&self, key: usize) -> PmtreeResult<H::Fr> {
if key >= self.capacity() { if key >= self.capacity() {
return Err(PmtreeErrorKind::TreeError(TreeErrorKind::IndexOutOfBounds)); return Err(PmtreeErrorKind::TreeError(TreeErrorKind::IndexOutOfBounds));