This commit is contained in:
parent
1ad738e58f
commit
de9e407e15
|
@ -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 });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue