Skip to content

Commit 5681c71

Browse files
committed
Wording tweak suggested by @pcwalton.
1 parent 62b74d9 commit 5681c71

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/tutorial.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,9 +2080,10 @@ fn head<T: Clone>(v: &[T]) -> T {
20802080
}
20812081
~~~~
20822082
2083-
The bounded type parameter `T: Clone` says that `head` is polymorphic
2084-
over any type `T`, so long as there is an implementation of the
2085-
`Clone` trait for that type.
2083+
The bounded type parameter `T: Clone` says that `head`
2084+
can be called on an argument of type `&[T]` for any `T`,
2085+
so long as there is an implementation of the
2086+
`Clone` trait for `T`.
20862087
When instantiating a generic function,
20872088
we can only instantiate it with types
20882089
that implement the correct trait,

0 commit comments

Comments
 (0)