disambiguate "and not" when explaining "&& return"
This commit is contained in:
parent
83bc2c2760
commit
b15e2be6b0
@ -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 New Issue
Block a user