Skip to content

Commit f2ecd39

Browse files
committed
Clarify comment.
Signed-off-by: Igor Peshansky <ipeshansky@nvidia.com>
1 parent 2e263a6 commit f2ecd39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sql-plugin/src/main/scala/com/nvidia/spark/rapids/RegexParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class RegexParser(pattern: String) {
182182
&& pattern.charAt(pos) == '?'
183183
&& ":!=".contains(pattern.charAt(pos+1))) {
184184
consumeExpected('?')
185-
(false, consume() match { // exhaustiveness guaranteed by the guard
185+
(false, consume() match { // guaranteed exhaustive by the contains call above
186186
case ':' => None
187187
case '!' => Some(RegexNegativeLookahead)
188188
case '=' => Some(RegexPositiveLookahead)

0 commit comments

Comments
 (0)