mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Update style-guide.md
This commit is contained in:
parent
24e5118ed6
commit
fae8df22b7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user