Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/items/associated-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
// ...
}
Expand All @@ -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();
```
Expand Down Expand Up @@ -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
[path]: paths.html