Skip to content

Commit

Permalink
Merge pull request rubocop#344 from binaryphile/master
Browse files Browse the repository at this point in the history
note safe assignment exception to no parens around condition
  • Loading branch information
bbatsov committed Sep 12, 2014
2 parents 9993e76 + 6037975 commit 8443a45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,9 @@ Translations of the guide are available in the following languages:
end
```

Note that there is an exception to this rule, namely [safe assignment in
condition](#safe-assignment-in-condition).

* <a name="no-multiline-while-do"></a>
Never use `while/until condition do` for multi-line `while/until`.
<sup>[[link](#no-multiline-while-do)]</sup>
Expand Down

0 comments on commit 8443a45

Please sign in to comment.