Skip to content
Permalink
Browse files

Docs: Fix example for curly "multi-or-nest" option (#7597)

  • Loading branch information...
wwwillchen authored and ilyavolodin committed Nov 15, 2016
1 parent 6abb534 commit 100c6e123ed4522f7e0378c9fb2035d45f30984e
Showing with 6 additions and 2 deletions.
  1. +6 −2 docs/rules/curly.md
@@ -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:
@@ -217,6 +216,11 @@ while (true)
for (var i = 0; foo; i++)
doSomething();
if (foo) {
// some comment
bar();
}
```

### consistent

0 comments on commit 100c6e1

Please sign in to comment.
You can’t perform that action at this time.