Skip to content

Commit

Permalink
Merge pull request #3093 from dalcde/patch-1
Browse files Browse the repository at this point in the history
Fix typo in RFC 560
  • Loading branch information
ehuss authored Mar 9, 2021
2 parents e512fdd + ae13940 commit 6bfedd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/0560-integer-overflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ defined results today. The only change is that now a panic may result.
wrap.
- The operations `/`, `%` for the arguments `INT_MIN` and `-1`
will unconditionally panic. This is unconditional for legacy reasons.
- Shift operations (`<<`, `>>`) on a value of with `N` can be passed a shift
- Shift operations (`<<`, `>>`) on a value of width `N` can be passed a shift
value >= `N`. It is unclear what behaviour should result from this, so the
shift value is unconditionally masked to be modulo `N` to ensure that the
argument is always in range.
Expand Down

0 comments on commit 6bfedd1

Please sign in to comment.