From 0bc23c3af1b7bb5a374e3988ae30476717607346 Mon Sep 17 00:00:00 2001 From: Jeroen Ketema Date: Tue, 28 Apr 2026 16:33:17 +0200 Subject: [PATCH] C++: Match example with text --- cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll b/cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll index b7905a9d23f..c4bd6088d26 100644 --- a/cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll +++ b/cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll @@ -1836,13 +1836,10 @@ class SwitchStmt extends ConditionalStmt, @stmt_switch { * For example, for * ``` * switch(i) { - * case 1: - * case 2: - * break; - * default: - * break; - * } - * ``` + * case 5: + * case 6: + * default: + * } * ``` * 0 yields `case 5:`, 1 yields `case 6:`, and 2 yields `default:`. */ SwitchCase getSwitchCase(int n) {