mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
mem.eql need slice type
This commit is contained in:
parent
e79d7e0ded
commit
0363f3c6f3
@ -1565,7 +1565,7 @@ value == null{#endsyntax#}</pre>
|
||||
const array1 = [_]u32{1,2};
|
||||
const array2 = [_]u32{3,4};
|
||||
const together = array1 ++ array2;
|
||||
mem.eql(u32, together, &[_]u32{1,2,3,4}){#endsyntax#}</pre>
|
||||
mem.eql(u32, &together, &[_]u32{1,2,3,4}){#endsyntax#}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user