Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Docs: fix wrong max-depth example (fixes #11991) (#12358)
Signed-off-by: Gabriel R. Sezefredo <g@briel.dev>
  • Loading branch information
gabrieldrs authored and kaicataldo committed Oct 8, 2019
1 parent 3642342 commit 84467c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/rules/max-depth.md
Expand Up @@ -24,14 +24,14 @@ Examples of **incorrect** code for this rule with the default `{ "max": 4 }` opt

function foo() {
for (;;) { // Nested 1 deep
let val = () => (param) => { // Nested 2 deep
while (true) { // Nested 2 deep
if (true) { // Nested 3 deep
if (true) { // Nested 4 deep
if (true) { // Nested 5 deep
}
}
}
};
}
}
}
```
Expand All @@ -44,12 +44,12 @@ Examples of **correct** code for this rule with the default `{ "max": 4 }` optio

function foo() {
for (;;) { // Nested 1 deep
let val = () => (param) => { // Nested 2 deep
if (true) { // Nested 3 deep
while (true) { // Nested 2 deep
if (true) { // Nested 3 deep
if (true) { // Nested 4 deep
}
}
};
}
}
}
```
Expand Down

0 comments on commit 84467c0

Please sign in to comment.