Skip to content

Commit 999a143

Browse files
committed
Fix typo(impl-trait)
Other documentation makes it reasonably clear that `impl Trait` in argument position allows the _caller_ to specify the type.
1 parent ed438b9 commit 999a143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/impl-trait.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn foo() -> impl Trait {
2525
> Note: This is often called "impl Trait in argument position".
2626
2727
Functions can declare an argument to be an anonymous type parameter where the
28-
callee must provide a type that has the bounds declared by the anonymous type
28+
caller must provide a type that has the bounds declared by the anonymous type
2929
parameter and the function can only use the methods available by the trait
3030
bounds of the anonymous type parameter.
3131

0 commit comments

Comments
 (0)