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 1, 2019
1 parent 20ba14d commit f4b3378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 Down

0 comments on commit f4b3378

Please sign in to comment.