diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-12 17:13:05 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-12 17:13:05 +0100 |
| commit | 2b36069924c9fa21111fe8a8b5471e25847c52cf (patch) | |
| tree | e3a90935f1e31bb31d9b0b3d52f184527e718167 | |
| parent | 4fb4ada2c72233de59dbf708bcd3a6ffcfec3953 (diff) | |
Fix typo
| -rw-r--r-- | core/slice/slice.odin | 2 |
1 files changed, 1 insertions, 1 deletions
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); |