From 2b36069924c9fa21111fe8a8b5471e25847c52cf Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 12 Apr 2021 17:13:05 +0100 Subject: [PATCH] Fix typo --- core/slice/slice.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/slice/slice.odin b/core/slice/slice.odin index 75105a1c4..fdacb842f 100644 --- a/core/slice/slice.odin +++ b/core/slice/slice.odin @@ -281,7 +281,7 @@ reduce :: proc(s: $S/[]$U, initializer: $V, f: proc(V, U) -> V) -> V { } filter :: proc(s: $S/[]$U, f: proc(U) -> bool, allocator := context.allocator) -> S { - r := make([dynamic]S, 0, 0, allocator); + r := make([dynamic]U, 0, 0, allocator); for v in s { if f(v) { append(&r, v);