Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
Change wrong field name in "Trait Inheritance" section.
  • Loading branch information
pavpanchekha committed Apr 8, 2013
1 parent 5f13e9c commit c6d6782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c6d6782

Please sign in to comment.