We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec954f3 commit 2e5e64eCopy full SHA for 2e5e64e
src/types/cast.md
@@ -52,7 +52,8 @@ fn main() {
52
53
// Unless it already fits, of course.
54
println!(" 128 as a i16 is: {}", 128 as i16);
55
- // 128 as u8 -> 128, whose two's complement in eight bits is:
+
56
+ // 128 as u8 -> -128, whose two's complement in eight bits is:
57
println!(" 128 as a i8 is : {}", 128 as i8);
58
59
// repeating the example above
0 commit comments