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 5bdddcc + b134772 commit a6fd482Copy full SHA for a6fd482
src/types/cast.md
@@ -53,7 +53,7 @@ fn main() {
53
// Unless it already fits, of course.
54
println!(" 128 as a i16 is: {}", 128 as i16);
55
56
- // 128 as u8 -> 128, whose value in 8-bit two's complement representation is:
+ // In boundary case 128 value in 8-bit two's complement representation is -128
57
println!(" 128 as a i8 is : {}", 128 as i8);
58
59
// repeating the example above
0 commit comments