Skip to content

Commit

Permalink
Merge pull request #1719 from Dem0lKa/patch-1
Browse files Browse the repository at this point in the history
cast.md improvements for signed boundary case casting
  • Loading branch information
marioidival authored Jun 14, 2023
2 parents 5bdddcc + b134772 commit a6fd482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/cast.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn main() {
// Unless it already fits, of course.
println!(" 128 as a i16 is: {}", 128 as i16);
// 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
println!(" 128 as a i8 is : {}", 128 as i8);
// repeating the example above
Expand Down

0 comments on commit a6fd482

Please sign in to comment.