mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 10:04:23 +00:00
Fixed typo
Change wrong field name in "Trait Inheritance" section.
This commit is contained in:
parent
5f13e9ccc2
commit
c6d6782906
@ -2288,7 +2288,7 @@ impl Shape for CircleStruct {
|
||||
Notice that methods of `Circle` can call methods on `Shape`, as our
|
||||
`radius` implementation calls the `area` method.
|
||||
This is a silly way to compute the radius of a circle
|
||||
(since we could just return the `circle` field), but you get the idea.
|
||||
(since we could just return the `radius` field), but you get the idea.
|
||||
|
||||
In type-parameterized functions,
|
||||
methods of the supertrait may be called on values of subtrait-bound type parameters.
|
||||
|
Loading…
Reference in New Issue
Block a user