all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
committed by
Andrew Kelley
parent
a6c8ee5231
commit
50339f595a
@@ -13,7 +13,7 @@ fn getNullPtr() ?*const anyopaque {
|
||||
}
|
||||
pub fn main() !void {
|
||||
const null_ptr: ?*const anyopaque = getNullPtr();
|
||||
const required_ptr: *align(1) const fn() void = @ptrCast(*align(1) const fn() void, null_ptr);
|
||||
const required_ptr: *align(1) const fn () void = @ptrCast(*align(1) const fn () void, null_ptr);
|
||||
_ = required_ptr;
|
||||
return error.TestFailed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user