There was an error while loading. Please reload this page.
1 parent 347e5da commit 6f8b0e5Copy full SHA for 6f8b0e5
1 file changed
STYLEGUIDE.md
@@ -840,9 +840,8 @@ end
840
arr.each { |elem| puts elem }
841
```
842
843
-* Prefer `{...}` over `do...end` for single-line blocks. Avoid using
844
- `{...}` for multi-line blocks (multiline chaining is always
845
- ugly). Always use `do...end` for "control flow" and "method
+* Prefer `{...}` over `do...end` for single-line blocks. Avoid using
+ `{...}` for multi-line blocks. Always use `do...end` for "control flow" and "method
846
definitions" (e.g. in Rakefiles and certain DSLs).
847
<a name="squiggly-braces"></a><sup>[[link](#squiggly-braces)]</sup>
848
* <a href="https://docs.rubocop.org/rubocop/cops_style.html#styleblockdelimiters">RuboCop rule: Style/BlockDelimiters</a>
0 commit comments