summaryrefslogtreecommitdiff
path: root/lib/std/search.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/search.myr')
-rw-r--r--lib/std/search.myr4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/std/search.myr b/lib/std/search.myr
index 725e419..fa2ae40 100644
--- a/lib/std/search.myr
+++ b/lib/std/search.myr
@@ -8,9 +8,7 @@ pkg std =
/* linear search over a list of values */
generic lsearch = {sl, val, cmp
- var i
-
- for i = 0; i < sl.len; i++
+ for var i = 0; i < sl.len; i++
match cmp(sl[i], val)
| `Equal:
-> `Some i