Skip to content

Commit c6d6782

Browse files
committed
Fixed typo
Change wrong field name in "Trait Inheritance" section.
1 parent 5f13e9c commit c6d6782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ impl Shape for CircleStruct {
22882288
Notice that methods of `Circle` can call methods on `Shape`, as our
22892289
`radius` implementation calls the `area` method.
22902290
This is a silly way to compute the radius of a circle
2291-
(since we could just return the `circle` field), but you get the idea.
2291+
(since we could just return the `radius` field), but you get the idea.
22922292

22932293
In type-parameterized functions,
22942294
methods of the supertrait may be called on values of subtrait-bound type parameters.

0 commit comments

Comments
 (0)