diff --git a/ql/src/semmle/go/Expr.qll b/ql/src/semmle/go/Expr.qll index b264d21d0db..632e78246cb 100644 --- a/ql/src/semmle/go/Expr.qll +++ b/ql/src/semmle/go/Expr.qll @@ -218,7 +218,7 @@ class FloatLit extends @floatlit, BasicLit { } class ImagLit extends @imaglit, BasicLit { } /** - * A character literal. + * A rune literal. */ class CharLit extends @charlit, BasicLit { // use the constant value of the literal as the string value, as the value we get from the @@ -226,6 +226,8 @@ class CharLit extends @charlit, BasicLit { override string getStringValue() { result = this.getValue() } } +class RuneLit = CharLit; + /** * A string literal. */