Skip to content

Commit bda09e1

Browse files
committed
Cleaned up language a little.
1 parent bf63211 commit bda09e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-import-trait-associated-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ desugars to
198198
```rust
199199
Trait::func(x, y, z);
200200
```
201-
which compiles if and only if `T` can be inferred from the function call. For example, if `func` was
201+
which compiles if and only if `T` and `Self` can be inferred from the function call. For example, if `func` was
202202
```
203203
fn func(self, b: T, c: i32) {}
204204
```
205-
then `T` would be inferred to be the type of `y`, assuming `y` itself can be inferred.
205+
then `Trait<T>` would be inferred to be `<typeof(x) as Trait<typeof(y)>`.
206206

207207
# Drawbacks
208208
[drawbacks]: #drawbacks

0 commit comments

Comments
 (0)