Skip to content

Commit 0bc23c3

Browse files
committed
C++: Match example with text
1 parent f634b32 commit 0bc23c3

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

  • cpp/ql/lib/semmle/code/cpp/stmts

cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,13 +1836,10 @@ class SwitchStmt extends ConditionalStmt, @stmt_switch {
18361836
* For example, for
18371837
* ```
18381838
* switch(i) {
1839-
* case 1:
1840-
* case 2:
1841-
* break;
1842-
* default:
1843-
* break;
1844-
* }
1845-
* ```
1839+
* case 5:
1840+
* case 6:
1841+
* default:
1842+
* } * ```
18461843
* 0 yields `case 5:`, 1 yields `case 6:`, and 2 yields `default:`.
18471844
*/
18481845
SwitchCase getSwitchCase(int n) {

0 commit comments

Comments
 (0)