auto merge of #5775 : pavpanchekha/rust/patch-1, r=thestinger
Change wrong field name in "Trait Inheritance" section.
This commit is contained in:
commit
c92936395c
@ -2320,7 +2320,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