mirror of
https://github.com/ziglang/zig.git
synced 2026-01-15 03:45:22 +00:00
fix typo in new mem.len test
This commit is contained in:
parent
e369789062
commit
7e45a3ef6a
@ -606,7 +606,7 @@ test "len" {
|
||||
testing.expect(len(ptr) == 2);
|
||||
}
|
||||
{
|
||||
var array: [5:0]u16 = [_]u16{ 1, 2, 3, 4, 5 };
|
||||
var array: [5:0]u16 = [_:0]u16{ 1, 2, 3, 4, 5 };
|
||||
testing.expect(len(&array) == 5);
|
||||
array[2] = 0;
|
||||
testing.expect(len(&array) == 2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user