Skip to content

Commit aa04ba2

Browse files
hvitvedCopilot
andauthored
Update rust/ql/lib/codeql/rust/internal/typeinference/TypeInference.qll
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e587541 commit aa04ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/ql/lib/codeql/rust/internal/typeinference/TypeInference.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ pragma[nomagic]
10331033
private Type inferStructExprType0(AstNode n, FunctionPosition pos, TypePath path) {
10341034
exists(StructExprMatchingInput::Access a, StructExprMatchingInput::AccessPosition apos |
10351035
n = a.getNodeAt(apos) and
1036-
if apos.isStructPos() then pos.isReturn() else pos.asPosition() = 0 // the acutal position doesn't matter, as long as it is positional
1036+
if apos.isStructPos() then pos.isReturn() else pos.asPosition() = 0 // the actual position doesn't matter, as long as it is positional
10371037
|
10381038
result = StructExprMatching::inferAccessType(a, apos, path)
10391039
or

0 commit comments

Comments
 (0)