diff options
Diffstat (limited to 'doc/syntax/operators.rdoc')
| -rw-r--r-- | doc/syntax/operators.rdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/syntax/operators.rdoc b/doc/syntax/operators.rdoc index f972309412..d3045ac99e 100644 --- a/doc/syntax/operators.rdoc +++ b/doc/syntax/operators.rdoc @@ -36,7 +36,7 @@ operation that specifies the behavior. == Logical Operators -Logical operators are not methods, and therefor cannot be +Logical operators are not methods, and therefore cannot be redefined/overloaded. They are tokenized at a lower level. Short-circuit logical operators (<code>&&</code>, <code>||</code>, @@ -47,9 +47,9 @@ of the operation. === <code>&&</code>, <code>and</code> Both <code>&&</code>/<code>and</code> operators provide short-circuiting by executing each -side of the operator, left to right, and stopping at the first occurence of a +side of the operator, left to right, and stopping at the first occurrence of a falsey expression. The expression that defines the result is the last one -executed, whether it be the final expression, or the first occurence of a falsey +executed, whether it be the final expression, or the first occurrence of a falsey expression. Some examples: |
