Skip to content

Commit

Permalink
docs: add switch statement examples for lines-around-comment-rule
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Jul 22, 2022
1 parent 1446457 commit 9347635
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/src/rules/lines-around-comment.md
Expand Up @@ -230,6 +230,14 @@ class C {
foo();
}
}

switch (foo) {
/* what a great and wonderful day */

case 1:
bar();
break;
}
```

:::
Expand Down Expand Up @@ -308,6 +316,14 @@ class C {

/* what a great and wonderful day */
}

switch (foo) {
case 1:
bar();
break;

/* what a great and wonderful day */
}
```

:::
Expand Down

0 comments on commit 9347635

Please sign in to comment.