Skip to content

Commit fad7b5e

Browse files
committed
Rust: Improvements to docs from review comments
1 parent 6184952 commit fad7b5e

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -124,34 +124,34 @@ Type getAssocFunctionTypeAt(Function f, ImplOrTraitItemNode i, FunctionPosition
124124
*
125125
* ```rust
126126
* trait T1 {
127-
* fn m1(self); // self1
127+
* fn m1(self); // T1::m1
128128
*
129-
* fn m2(self) { ... } // self2
129+
* fn m2(self) { ... } // T1::m2
130130
* }
131131
*
132132
* trait T2 : T1 {
133-
* fn m3(self); // self3
133+
* fn m3(self); // T2::m3
134134
* }
135135
*
136136
* impl T1 for X {
137-
* fn m1(self) { ... } // self4
137+
* fn m1(self) { ... } // X::m1
138138
* }
139139
*
140140
* impl T2 for X {
141-
* fn m3(self) { ... } // self5
141+
* fn m3(self) { ... } // X::m3
142142
* }
143143
* ```
144144
*
145-
* f | `impl` or trait | pos | type
146-
* ---- | --------------- | ------ | ----
147-
* `m1` | `trait T1` | `self` | `T1`
148-
* `m1` | `trait T2` | `self` | `T2`
149-
* `m2` | `trait T1` | `self` | `T1`
150-
* `m2` | `trait T2` | `self` | `T2`
151-
* `m2` | `impl T1 for X` | `self` | `X`
152-
* `m3` | `trait T2` | `self` | `T2`
153-
* `m4` | `impl T2 for X` | `self` | `X`
154-
* `m5` | `impl T2 for X` | `self` | `X`
145+
* f | `impl` or trait | pos | type
146+
* -------- | --------------- | ------ | ----
147+
* `T1::m1` | `trait T1` | `self` | `T1`
148+
* `T1::m1` | `trait T2` | `self` | `T2`
149+
* `T1::m2` | `trait T1` | `self` | `T1`
150+
* `T1::m2` | `trait T2` | `self` | `T2`
151+
* `T1::m2` | `impl T1 for X` | `self` | `X`
152+
* `T2::m3` | `trait T2` | `self` | `T2`
153+
* `X::m1` | `impl T1 for X` | `self` | `X`
154+
* `X::m3` | `impl T2 for X` | `self` | `X`
155155
*/
156156
class AssocFunctionType extends MkAssocFunctionType {
157157
/**

shared/typeinference/codeql/typeinference/internal/TypeInference.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ module Make1<LocationSig Location, InputSig1<Location> Input1> {
450450
* free in `condition` and `constraint`,
451451
* - and for every instantiation of the type parameters from `abs` the
452452
* resulting `condition` satisifies the constraint given by `constraint`.
453-
* - `transitive` corresponds to wether any further constraints satisifed
453+
* - `transitive` corresponds to whether any further constraints satisifed
454454
* through `constraint` also applies to `condition`.
455455
*
456456
* Example in C#:

0 commit comments

Comments
 (0)