Skip to content

Commit

Permalink
Docs: Fix example for curly "multi-or-nest" option (#7597)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen authored and ilyavolodin committed Nov 15, 2016
1 parent 6abb534 commit 100c6e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/rules/curly.md
Expand Up @@ -184,10 +184,9 @@ for (var i = 0; foo; i++) {
doSomething();
}

if (foo) {
if (foo)
// some comment
bar();
}
```

Examples of **correct** code for the `"multi-or-nest"` option:
Expand Down Expand Up @@ -217,6 +216,11 @@ while (true)

for (var i = 0; foo; i++)
doSomething();

if (foo) {
// some comment
bar();
}
```

### consistent
Expand Down

0 comments on commit 100c6e1

Please sign in to comment.