Skip to content

Commit

Permalink
docs(imt): add docs to indexOf function
Browse files Browse the repository at this point in the history
re #321
  • Loading branch information
cedoor committed Dec 11, 2024
1 parent 3936a28 commit b89eb2b
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 b89eb2b

Please sign in to comment.