Skip to content

Commit

Permalink
Clarify !! rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Bozhidar Batsov committed Oct 11, 2013
1 parent d950f0c commit a15f631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ Never use `::` for regular method invocation.
x = !something
```
* Avoid the use of `!!`.
* Avoid the use of `!!` to convert an object to a `boolean` value.
```Ruby
# bad - doesn't work properly with boolean values
Expand Down

0 comments on commit a15f631

Please sign in to comment.