summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorChris McIntyre <christopher.mcintyre@gmail.com>2018-06-01 08:24:49 -0700
committerVarriount <Varriount@users.noreply.github.com>2018-06-01 11:24:49 -0400
commit8557a2e1a510d0e195af7b93977bb9866a45b796 (patch)
treef356c90faa5fbdc7e8ed8d29264f8ed9da2edcf6
parent3acedd4cd95e75f04714590f5dbd5876e3a936e8 (diff)
downloadNim-8557a2e1a510d0e195af7b93977bb9866a45b796.tar.gz
Fixed operator precedence in example (#7912)
The order of operations was incorrect for the right-hand side of the `assert` statement on line 3199, based on the operator precedence for line 3197.
-rw-r--r--doc/manual.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index 95af86a6a..d0a778bdd 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -3196,7 +3196,7 @@ notation. (Thus an operator can have more than two parameters):
     # Multiply and add
     result = a * b + c
 
-  assert `*+`(3, 4, 6) == `*`(a, `+`(b, c))
+  assert `*+`(3, 4, 6) == `+`(`*`(a, b), c)
 
 
 Export marker