mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:24:42 +01:00
Add parentheses to remove ambiguity for %. (#2478)
This commit is contained in:
@@ -128,7 +128,7 @@ Signed integer arithmetic produces the usual mathematical result. Unsigned
|
||||
integer arithmetic in `uN` wraps around modulo 2<sup>`N`</sup>.
|
||||
|
||||
Division truncates towards zero. The result of the `%` operator is defined by
|
||||
the equation `a % b == a - a / b * b`.
|
||||
the equation `a % b == a - (a / b) * b`.
|
||||
|
||||
#### Overflow and other error conditions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user