Skip to content

Commit

Permalink
Merge pull request #1521 from leg0/128-as-i8-fix
Browse files Browse the repository at this point in the history
Update cast.md
  • Loading branch information
marioidival committed Apr 25, 2022
2 parents bf8d34c + 2e5e64e commit dfe0c5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/cast.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ fn main() {
// Unless it already fits, of course.
println!(" 128 as a i16 is: {}", 128 as i16);
// 128 as u8 -> 128, whose two's complement in eight bits is:
// 128 as u8 -> -128, whose two's complement in eight bits is:
println!(" 128 as a i8 is : {}", 128 as i8);
// repeating the example above
Expand Down

0 comments on commit dfe0c5c

Please sign in to comment.