diff --git a/docs/rules/max-depth.md b/docs/rules/max-depth.md index 8eed0912fbe..b853d026713 100644 --- a/docs/rules/max-depth.md +++ b/docs/rules/max-depth.md @@ -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 } } } - }; + } } } ``` @@ -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 } } - }; + } } } ```