Skip to content

Commit bf63211

Browse files
committed
Corrected brainfart.
1 parent 69ef26a commit bf63211

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
@@ -200,9 +200,9 @@ Trait::func(x, y, z);
200200
```
201201
which compiles if and only if `T` can be inferred from the function call. For example, if `func` was
202202
```
203-
fn func(a: T, b: i32, c: i32) {}
203+
fn func(self, b: T, c: i32) {}
204204
```
205-
then `T` would be inferred to be the type of `x`, assuming `x` itself can be inferred.
205+
then `T` would be inferred to be the type of `y`, assuming `y` itself can be inferred.
206206

207207
# Drawbacks
208208
[drawbacks]: #drawbacks

0 commit comments

Comments
 (0)