From c5f4e65fdd7280bbded5e0cfad71fab7725acc62 Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Tue, 20 Dec 2022 17:51:05 -0800 Subject: [PATCH] Add parentheses to remove ambiguity for `%`. (#2478) --- docs/design/expressions/arithmetic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/design/expressions/arithmetic.md b/docs/design/expressions/arithmetic.md index ea05a9185969..f5e99543b283 100644 --- a/docs/design/expressions/arithmetic.md +++ b/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`N`. 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