changeset 20659:4a82f565a669 stable

doc: Fix typo in short-circuit operators documentation (bug #46280). * expr.txi: Change typo "boolean1" to "boolean2" in section 8.5.2.
author Rik <rik@octave.org>
date Mon, 26 Oct 2015 09:19:01 -0700
parents d66985d61c78
children b04d2e03fe94
files doc/interpreter/expr.txi
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/expr.txi	Thu Oct 22 13:02:44 2015 -0700
+++ b/doc/interpreter/expr.txi	Mon Oct 26 09:19:01 2015 -0700
@@ -931,7 +931,7 @@
 If it is false, the result of the overall expression is 0.  If it is
 true, the expression @var{boolean2} is evaluated and converted to a
 scalar using the equivalent of the operation @code{all
-(@var{boolean1}(:))}.  If it is true, the result of the overall expression
+(@var{boolean2}(:))}.  If it is true, the result of the overall expression
 is 1.  Otherwise, the result of the overall expression is 0.
 
 @strong{Warning:} there is one exception to the rule of evaluating
@@ -947,7 +947,7 @@
 If it is true, the result of the overall expression is 1.  If it is
 false, the expression @var{boolean2} is evaluated and converted to a
 scalar using the equivalent of the operation @code{all
-(@var{boolean1}(:))}.  If it is true, the result of the overall expression
+(@var{boolean2}(:))}.  If it is true, the result of the overall expression
 is 1.  Otherwise, the result of the overall expression is 0.
 
 @strong{Warning:} the truth value of an empty matrix is always @code{false},