mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
langref: rename incorrect expect to assert
This commit is contained in:
parent
f654e16d06
commit
795f075790
@ -7833,7 +7833,7 @@ fn readFile(allocator: Allocator, filename: []const u8) ![]u8 {
|
|||||||
for the current target to match the C ABI. When the child type of a pointer has
|
for the current target to match the C ABI. When the child type of a pointer has
|
||||||
this alignment, the alignment can be omitted from the type.
|
this alignment, the alignment can be omitted from the type.
|
||||||
</p>
|
</p>
|
||||||
<pre>{#syntax#}const expect = @import("std").debug.assert;
|
<pre>{#syntax#}const assert = @import("std").debug.assert;
|
||||||
comptime {
|
comptime {
|
||||||
assert(*u32 == *align(@alignOf(u32)) u32);
|
assert(*u32 == *align(@alignOf(u32)) u32);
|
||||||
}{#endsyntax#}</pre>
|
}{#endsyntax#}</pre>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user