Skip to content

Commit

Permalink
Update cast.md
Browse files Browse the repository at this point in the history
Fix comment for `128 as i8` example.
  • Loading branch information
leg0 authored Mar 26, 2022
1 parent ec954f3 commit 2e5e64e
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 2e5e64e

Please sign in to comment.