We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e587541 commit aa04ba2Copy full SHA for aa04ba2
1 file changed
rust/ql/lib/codeql/rust/internal/typeinference/TypeInference.qll
@@ -1033,7 +1033,7 @@ pragma[nomagic]
1033
private Type inferStructExprType0(AstNode n, FunctionPosition pos, TypePath path) {
1034
exists(StructExprMatchingInput::Access a, StructExprMatchingInput::AccessPosition apos |
1035
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
+ if apos.isStructPos() then pos.isReturn() else pos.asPosition() = 0 // the actual position doesn't matter, as long as it is positional
1037
|
1038
result = StructExprMatching::inferAccessType(a, apos, path)
1039
or
0 commit comments