Skip to content

Commit

Permalink
docs(imt): add docs to indexOf function (#359)
Browse files Browse the repository at this point in the history
re #321
  • Loading branch information
cedoor authored Jan 13, 2025
1 parent 85b499b commit 4425b09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/imt/src/imt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ export default class IMT {
}

/**
* It returns the index of a leaf. If the leaf does not exist it returns -1.
* It returns the index of the first occurrence of a leaf in the tree.
* If the leaf does not exist it returns -1.
* @param leaf A leaf of the tree.
* @returns The index of the leaf.
*/
Expand Down

0 comments on commit 4425b09

Please sign in to comment.