diff --git a/src/items/associated-items.md b/src/items/associated-items.md index 75ef383e0e..e52fd4024e 100644 --- a/src/items/associated-items.md +++ b/src/items/associated-items.md @@ -111,7 +111,7 @@ of this trait while the trait is in scope can have their `draw` and # fn draw(&self, Surface); # fn bounding_box(&self) -> BoundingBox; # } - +# struct Circle { // ... } @@ -124,8 +124,8 @@ impl Shape for Circle { # impl Circle { # fn new() -> Circle { Circle{} } -} - +# } +# let circle_shape = Circle::new(); let bounding_box = circle_shape.bounding_box(); ``` @@ -277,4 +277,4 @@ fn main() { [functions]: items/functions.html [method call operator]: expressions/method-call-expr.html [block]: expressions/block-expr.html -[path]: paths.html \ No newline at end of file +[path]: paths.html