auto merge of #5775 : pavpanchekha/rust/patch-1, r=thestinger

Change wrong field name in "Trait Inheritance" section.
This commit is contained in:
bors 2013-04-08 11:10:00 -07:00
commit c92936395c

View File

@ -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.