Skip to content

Commit 5047bee

Browse files
committed
Ruby: Adjust qldoc.
1 parent 4fa8a9f commit 5047bee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ruby/ql/lib/codeql/ruby/ast/Control.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ class TernaryIfExpr extends ConditionalExpr, TTernaryIfExpr {
355355
*/
356356
class CaseExpr extends ControlExpr instanceof CaseExprImpl {
357357
/**
358-
* Gets the expression being compared, if any. For example, `foo` in the following example.
358+
* Gets the expression being compared. For example, `foo` in the following example.
359359
* ```rb
360360
* case foo
361361
* when 0
@@ -364,7 +364,7 @@ class CaseExpr extends ControlExpr instanceof CaseExprImpl {
364364
* puts 'one'
365365
* end
366366
* ```
367-
* There is no result for the following example:
367+
* In the following example, the result is an implicit synthesized `true` literal.
368368
* ```rb
369369
* case
370370
* when a then 0

0 commit comments

Comments
 (0)