소스 검색

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

Jon Ross-Perkins 3 년 전
부모
커밋
c5f4e65fdd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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