This commit is contained in:
Adam Millerchip 2022-01-01 02:27:02 +09:00
parent 1ad738e58f
commit de9e407e15
1 changed files with 1 additions and 1 deletions

View File

@ -69,6 +69,6 @@ pub fn main() void {
// Now it's your turn. See if you can fix this attempt to use
// this builtin to reverse the bits of a u8 integer.
const input: u8 = 0b11110000;
const tupni: u8 = @bitReverse(input);
const tupni: u8 = @bitReverse(u8, input);
print("{b:0>8} backwards is {b:0>8}.\n", .{ input, tupni });
}