Skip to content

Commit d180900

Browse files
paldepindCopilot
andauthored
Rust: Minor improvements to documentation comments
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 97670b3 commit d180900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2948,7 +2948,7 @@ private class VariantConstructor extends Constructor instanceof Variant {
29482948

29492949
/**
29502950
* A matching configuration for resolving types of constructors of enums and
2951-
* structs, such as `Result::Ok(42)`, `Foo { bar = 1 }` and `None`.
2951+
* structs, such as `Result::Ok(42)`, `Foo { bar: 1 }` and `None`.
29522952
*/
29532953
private module ConstructorMatchingInput implements MatchingInputSig {
29542954
import FunctionPositionMatchingInput
@@ -3586,7 +3586,7 @@ private module ConstructorPatMatchingInput implements MatchingInputSig {
35863586
result = inferType(this.getNodeAt(apos), path)
35873587
or
35883588
// The struct/enum type is supplied explicitly as a type qualifier, e.g.
3589-
// `let Foo<Bar>::Variant { ... } = ...` or
3589+
// `let Foo::<Bar>::Variant { ... } = ...` or
35903590
// `let Option::<Foo>::Some(x) = ...`.
35913591
apos.isReturn() and
35923592
result = super.getPath().(TypeMention).getTypeAt(path)

0 commit comments

Comments
 (0)