mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-11 09:29:59 +00:00
added ex064 builtins
This commit is contained in:
6
patches/patches/064_builtins.patch
Normal file
6
patches/patches/064_builtins.patch
Normal file
@@ -0,0 +1,6 @@
|
||||
72,73c72,73
|
||||
< const tupni: u8 = @bitReverse(input);
|
||||
< print("{b:0>8} backwards is {b:0>8}.\n", .{input});
|
||||
---
|
||||
> const tupni: u8 = @bitReverse(u8, input);
|
||||
> print("{b:0>8} backwards is {b:0>8}.\n", .{input, tupni});
|
||||
Reference in New Issue
Block a user