mirror of
https://github.com/Rate-Limiting-Nullifier/pmtree.git
synced 2026-01-09 12:48:06 -05:00
docs: add cargo-docs comment to new function
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user