Update style-guide.md

This commit is contained in:
Ian Hickson 2015-11-06 09:21:03 -08:00
parent 24e5118ed6
commit fae8df22b7

View File

@ -170,7 +170,9 @@ returns.)
If a flow control structure's statement is one line long, then don't
use braces around it, unless it's part of an "if" chain and any of the
other blocks have more than one line. (Keeping the code free of
boilerplate or redundant punctuation keeps it concise and readable.)
boilerplate or redundant punctuation keeps it concise and readable.
The analyzer will catch "goto fail"-style errors with its dead-code
detection.)
> For example,
> ```dart