Skip to content

Commit

Permalink
Update control-structures.md
Browse files Browse the repository at this point in the history
Reflect current thinking on non-usage of curly braces in case clauses.
  • Loading branch information
Jon Pretty committed Jul 6, 2015
1 parent edecf54 commit f1bbefe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions style/control-structures.md
Expand Up @@ -35,9 +35,7 @@ Remember the following guidelines:
- `for` - Omit braces if you have a `yield` clause. Otherwise,
surround the contents with curly-braces, even if the contents are
only a single line.
- `case` - Omit braces if the `case` expression fits on a single line.
Otherwise, use curly braces for clarity (even though they are not
*required* by the parser).
- `case` - Always omit braces in case clauses.

<!-- necessary to separate the following example from the above bullet list -->

Expand Down

0 comments on commit f1bbefe

Please sign in to comment.