1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

View file

@ -495,7 +495,7 @@ def show
end end
</ruby> </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: Note that the implicit render done by ActionController detects if +render+ has been called, so the following will work without errors: