Fixed "slices" unit test

This commit is contained in:
Luuk Machielse 2025-10-10 16:58:31 +02:00
parent 00426dfef6
commit 27b073b7f8

View file

@ -320,7 +320,7 @@ pub fn SliceIterConst(comptime T: type) type {
test "slices" {
const slice: []const i32 = &[_]i32{ -2, -1, 0, 1, 2 };
var it = iter(i32).slice(slice).enumerate();
var it = iter(i32).fromSlice(slice).enumerate();
while (it.next()) |pair| {
const i, const val = pair;