Skip to content

Commit 15f3c38

Browse files
committed
Rust: QLDoc fixes
1 parent 8cbe17a commit 15f3c38

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,12 +457,12 @@ class AssociatedTypeTypeParameter extends TypeParameter, TAssociatedTypeTypePara
457457
override Location getLocation() { result = typeAlias.getLocation() }
458458
}
459459

460-
/** Gets the associated type type parameter corresponding directly to `typeAlias`. */
460+
/** Gets the associated type type-parameter corresponding directly to `typeAlias`. */
461461
AssociatedTypeTypeParameter getAssociatedTypeTypeParameter(TypeAlias typeAlias) {
462462
result.isDirect() and result.getTypeAlias() = typeAlias
463463
}
464464

465-
/** Gets the dyn type type parameter corresponding directly to `typeAlias`. */
465+
/** Gets the dyn type type-parameter corresponding directly to `typeAlias`. */
466466
DynTraitTypeParameter getDynTraitTypeParameter(TypeAlias typeAlias) {
467467
result.getTraitTypeParameter() = getAssociatedTypeTypeParameter(typeAlias)
468468
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class NonAliasPathTypeMention extends PathTypeMention {
245245
// trait Sub: Super<Assoc=Assoc[Sub]>
246246
// ```
247247
// Where `Assoc` is an associated type of `Super` and `Assoc[Sub]` denotes
248-
// the copy of the type parameter inherited into `Sub`.
248+
// the copy of the type parameter inherited by `Sub`.
249249
exists(Trait subtrait, TypeAlias alias |
250250
subtrait.getATypeBound().getTypeRepr().(PathTypeRepr).getPath() = this and
251251
result = TAssociatedTypeTypeParameter(subtrait, alias) and

0 commit comments

Comments
 (0)