mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
Fixed typo in tutorial
Replaced "len" by "length", to match the given code example.
This commit is contained in:
parent
ef1b929b2f
commit
f495723733
@ -2253,7 +2253,7 @@ defining one.
|
||||
|
||||
The type parameters bound by a trait are in scope in each of the
|
||||
method declarations. So, re-declaring the type parameter
|
||||
`T` as an explicit type parameter for `len`, in either the trait or
|
||||
`T` as an explicit type parameter for `length`, in either the trait or
|
||||
the impl, would be a compile-time error.
|
||||
|
||||
Within a trait definition, `Self` is a special type that you can think
|
||||
|
Loading…
Reference in New Issue
Block a user