From 7743a1203a0f09317d1e1faade85dc144888c9eb Mon Sep 17 00:00:00 2001 From: Mike Ford Date: Mon, 27 Jun 2011 15:26:07 +0000 Subject: [PATCH] Fix typos, improve English. Be more explicit about non-usefulness of ==TRUE. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312534 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types/boolean.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/language/types/boolean.xml b/language/types/boolean.xml index d9bc16b104..35f9d8ef62 100644 --- a/language/types/boolean.xml +++ b/language/types/boolean.xml @@ -32,8 +32,8 @@ $foo = True; // assign the value TRUE to $foo - Typically, some kind of operator - which returns a boolean value, and the value is passed on to a + Typically, the result of an operator + which returns a boolean value is passed on to a control structure. @@ -41,7 +41,7 @@ $foo = True; // assign the value TRUE to $foo \n"; } -// ...because instead, this can be used: +// ...because this can be used with exactly the same meaning: if ($show_separators) { echo "
\n"; } @@ -68,7 +68,7 @@ if ($show_separators) { To explicitly convert a value to boolean, use the (bool) or (boolean) casts. However, in - most cases the cast is unncecessary, since a value will be automatically + most cases the cast is unnecessary, since a value will be automatically converted if an operator, function or control structure requires a boolean argument.