Skip to content

Commit 987ca61

Browse files
committed
Swift: Fix typo in a comment.
1 parent 8f69b2a commit 987ca61

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

swift/ql/lib/codeql/swift/regex/internal/ParseRegex.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ abstract class RegExp extends Expr {
9898
pos =
9999
rank[index](int p |
100100
(this.nonEscapedCharAt(p) = "[" or this.nonEscapedCharAt(p) = "]") and
101-
// Brackets that art part of POSIX expressions should not count as
101+
// Brackets that are part of POSIX expressions should not count as
102102
// char-set delimiters.
103103
not exists(int x, int y |
104104
this.posixStyleNamedCharacterProperty(x, y, _) and pos >= x and pos < y
@@ -121,7 +121,9 @@ abstract class RegExp extends Expr {
121121
)
122122
}
123123

124-
/** Whether there is a character class, between start (inclusive) and end (exclusive). */
124+
/**
125+
* Whether there is a character class, between start (inclusive) and end (exclusive).
126+
*/
125127
predicate charSet(int start, int end) {
126128
exists(int innerStart, int innerEnd |
127129
this.charSetStart(start, innerStart) and

0 commit comments

Comments
 (0)