Skip to content

Commit

Permalink
docs: add inline cases condition in no-fallthrough (#18158)
Browse files Browse the repository at this point in the history
docs: add inline cases condition
  • Loading branch information
Tanujkanti4441 committed Feb 29, 2024
1 parent af6e170 commit e5ef3cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/rules/no-fallthrough.md
Expand Up @@ -140,6 +140,11 @@ switch(foo) {
doSomething();
}

switch(foo) {
case 1: case 2:
doSomething();
}

switch(foo) {
case 1:
doSomething();
Expand Down

0 comments on commit e5ef3cd

Please sign in to comment.