aboutsummaryrefslogtreecommitdiff
path: root/docs/arrays.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-12-11 13:24:54 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-12-11 13:24:54 -0500
commit6c5c75961957db64e0074864ce0d3b7357f5a03a (patch)
treefcb1efc5c77557a0f6bcff1d2e209b841791767d /docs/arrays.md
parent1c261c33bd3c0a03a3cecf81c2082d8d1904c772 (diff)
Update docs
Diffstat (limited to 'docs/arrays.md')
-rw-r--r--docs/arrays.md3
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.