disambiguate "and not" when explaining "&& return"

This commit is contained in:
Suraj N. Kurapati 2011-12-11 23:18:58 -08:00
parent 83bc2c2760
commit b15e2be6b0

@ -495,7 +495,7 @@ def show
end
</ruby>
Make sure to use +and return+ and not +&amp;&amp; return+, since +&amp;&amp; return+ will not work due to the operator precedence in the Ruby Language.
Make sure to use +and return+ instead of +&amp;&amp; return+ because +&amp;&amp; return+ will not work due to the operator precedence in the Ruby Language.
Note that the implicit render done by ActionController detects if +render+ has been called, so the following will work without errors: