Skip to content

Commit ae7afa7

Browse files
aibaarspaldepind
andauthored
Update rust/ql/lib/codeql/rust/controlflow/internal/Completion.qll
Co-authored-by: Simon Friis Vindum <[email protected]>
1 parent 867c8a7 commit ae7afa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/ql/lib/codeql/rust/controlflow/internal/Completion.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private predicate isExhaustiveMatch(Pat pat) {
139139
// `match` expressions must be exhaustive, so last arm cannot fail
140140
pat = any(MatchExpr me).getLastArm().getPat()
141141
or
142-
// macro patterns is exhaustive if its expansion is
142+
// macro invocations are exhaustive if their expansion is
143143
pat = any(MacroPat mp | isExhaustiveMatch(mp.getMacroCall().getExpanded()))
144144
or
145145
// parameter patterns must be exhaustive

0 commit comments

Comments
 (0)