diff options
author | Suraj N. Kurapati <sunaku@gmail.com> | 2011-12-11 23:18:58 -0800 |
---|---|---|
committer | Suraj N. Kurapati <sunaku@gmail.com> | 2011-12-11 23:18:58 -0800 |
commit | b15e2be6b03811258fcaad5b827960273df88d4a (patch) | |
tree | 76aad4db2549ea53f9bc02d9c81537f5eaeb16fb /railties/guides/source | |
parent | 83bc2c27605db34be18f2e4f97890d04c4cc97e4 (diff) | |
download | rails-b15e2be6b03811258fcaad5b827960273df88d4a.tar.gz rails-b15e2be6b03811258fcaad5b827960273df88d4a.tar.bz2 rails-b15e2be6b03811258fcaad5b827960273df88d4a.zip |
disambiguate "and not" when explaining "&& return"
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/layouts_and_rendering.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile index a0ab34960d..5cff2d0893 100644 --- a/railties/guides/source/layouts_and_rendering.textile +++ b/railties/guides/source/layouts_and_rendering.textile @@ -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: |