We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62b74d9 commit 5681c71Copy full SHA for 5681c71
doc/tutorial.md
@@ -2080,9 +2080,10 @@ fn head<T: Clone>(v: &[T]) -> T {
2080
}
2081
~~~~
2082
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.
+The bounded type parameter `T: Clone` says that `head`
+can be called on an argument of type `&[T]` for any `T`,
+so long as there is an implementation of the
2086
+`Clone` trait for `T`.
2087
When instantiating a generic function,
2088
we can only instantiate it with types
2089
that implement the correct trait,
0 commit comments