manual: capitalize 'Copy'.
This commit is contained in:
parent
a2cace473b
commit
9e6df28277
1 changed files with 1 additions and 1 deletions
|
@ -929,7 +929,7 @@ with `int`, and require the closure parameter to have type
|
||||||
Since a parameter type is opaque to the generic function, the set of
|
Since a parameter type is opaque to the generic function, the set of
|
||||||
operations that can be performed on it is limited. Values of parameter
|
operations that can be performed on it is limited. Values of parameter
|
||||||
type can always be moved, but they can only be copied when the
|
type can always be moved, but they can only be copied when the
|
||||||
parameter is given a [`copy` bound](#type-kinds).
|
parameter is given a [`Copy` bound](#type-kinds).
|
||||||
|
|
||||||
~~~~
|
~~~~
|
||||||
fn id<T: Copy>(x: T) -> T { x }
|
fn id<T: Copy>(x: T) -> T { x }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue