Skip to content

Commit

Permalink
Docs: fix wrong max-depth example (fixes #11991)
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel R. Sezefredo <g@briel.dev>
  • Loading branch information
gabrieldrs committed Oct 2, 2019
1 parent 20ba14d commit 38644d3
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 38644d3

Please sign in to comment.