Skip to content

Commit

Permalink
Wording tweak suggested by @pcwalton.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkuper committed Jan 6, 2014
1 parent 62b74d9 commit 5681c71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -2080,9 +2080,10 @@ fn head<T: Clone>(v: &[T]) -> T {
}
~~~~

The bounded type parameter `T: Clone` says that `head` is polymorphic
over any type `T`, so long as there is an implementation of the
`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
`Clone` trait for `T`.
When instantiating a generic function,
we can only instantiate it with types
that implement the correct trait,
Expand Down

0 comments on commit 5681c71

Please sign in to comment.