From 6c5c75961957db64e0074864ce0d3b7357f5a03a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 11 Dec 2024 13:24:54 -0500 Subject: Update docs --- docs/arrays.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs') 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. -- cgit v1.2.3