From b89eb2ba81df997ac9fe414a96f6a115b6f88b9f Mon Sep 17 00:00:00 2001 From: cedoor Date: Wed, 11 Dec 2024 15:48:36 +0000 Subject: [PATCH] docs(imt): add docs to indexOf function re #321 --- packages/imt/src/imt.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/imt/src/imt.ts b/packages/imt/src/imt.ts index 60f41097..5f712bc8 100644 --- a/packages/imt/src/imt.ts +++ b/packages/imt/src/imt.ts @@ -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. */