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:
parent
83bc2c2760
commit
b15e2be6b0
1 changed files with 1 additions and 1 deletions
|
@ -495,7 +495,7 @@ def show
|
|||
end
|
||||
</ruby>
|
||||
|
||||
Make sure to use +and return+ and not +&& return+, since +&& return+ will not work due to the operator precedence in the Ruby Language.
|
||||
Make sure to use +and return+ instead of +&& return+ because +&& 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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue