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.
2 parents bf8d34c + 2e5e64e commit dfe0c5cCopy full SHA for dfe0c5c
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