diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/arrays.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/arrays.md b/docs/arrays.md index efb108ba..ce1c47df 100644 --- a/docs/arrays.md +++ b/docs/arrays.md @@ -350,12 +350,13 @@ Finds the index of the first occurrence of an element (if any). **Signature:** ```tomo -func find(arr: [T] -> Int?) +func find(arr: [T], target: T -> Int?) ``` **Parameters:** - `arr`: The array to search through. +- `item`: The item to find in the array. **Returns:** The index of the first occurrence or `!Int` if not found. |
