Explorar o código

Add parentheses to remove ambiguity for `%`. (#2478)

Jon Ross-Perkins %!s(int64=3) %!d(string=hai) anos
pai
achega
c5f4e65fdd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/design/expressions/arithmetic.md

+ 1 - 1
docs/design/expressions/arithmetic.md

@@ -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