mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 19:55:11 +00:00
Add parentheses to remove ambiguity for %. (#2478)
This commit is contained in:
1 parent
cc9ea4da66
commit
c5f4e65fdd
1 file changed
+1
-1
@@ -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