Skip to content

Commit

Permalink
Merge pull request rubocop#464 from etdev/add-parens-spacing-ex
Browse files Browse the repository at this point in the history
Add negative example for spaces around parens/brackets rule
  • Loading branch information
bbatsov committed Aug 4, 2015
2 parents 45691f3 + b1777d3 commit fb5681d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ Translations of the guide are available in the following languages:
<sup>[[link](#no-spaces-braces)]</sup>

```Ruby
# bad
some( arg ).other
[ 1, 2, 3 ].size

# good
some(arg).other
[1, 2, 3].size
```
Expand Down

0 comments on commit fb5681d

Please sign in to comment.