1 parent 4fa8a9f commit 5047beeCopy full SHA for 5047bee
1 file changed
ruby/ql/lib/codeql/ruby/ast/Control.qll
@@ -355,7 +355,7 @@ class TernaryIfExpr extends ConditionalExpr, TTernaryIfExpr {
355
*/
356
class CaseExpr extends ControlExpr instanceof CaseExprImpl {
357
/**
358
- * Gets the expression being compared, if any. For example, `foo` in the following example.
+ * Gets the expression being compared. For example, `foo` in the following example.
359
* ```rb
360
* case foo
361
* when 0
@@ -364,7 +364,7 @@ class CaseExpr extends ControlExpr instanceof CaseExprImpl {
364
* puts 'one'
365
* end
366
* ```
367
- * There is no result for the following example:
+ * In the following example, the result is an implicit synthesized `true` literal.
368
369
* case
370
* when a then 0
0 commit comments