about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/arith.yo2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a232fa6d7..1228f9675 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-23  Bart Schaefer  <schaefer@zsh.org>
+
+	* unposted: Doc/Zsh/arith.yo: use LPAR() instead of parens
+	in sqrt example
+
 2014-01-23  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* 32299: Doc/Zsh/arith.yo, Functions/Misc/zcalc, Src/math.c,
diff --git a/Doc/Zsh/arith.yo b/Doc/Zsh/arith.yo
index 4fff28fe2..96dc2dc68 100644
--- a/Doc/Zsh/arith.yo
+++ b/Doc/Zsh/arith.yo
@@ -92,7 +92,7 @@ point numbers, in which case the base must be omitted; grouping
 is away from the decimal point.  For example,
 
 example(zmodload zsh/mathfunc
-print $(( [#_] sqrt(1e7) )))
+print $(( [#_] sqrt+LPAR()1e7+RPAR() )))
 
 outputs `tt(3_162.277_660_168_379_5)' (the number of decimal places
 shown may vary).