Skip to content

Commit 3da5f93

Browse files
committed
Correct failing book test
1 parent a5a5c10 commit 3da5f93

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/doc/book/traits.md

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ implementing this trait passed as a parameter. `Self`, `&Self` or `&mut Self`
5252
may be used depending on the level of ownership required.
5353

5454
```rust
55+
struct Circle {
56+
x: f64,
57+
y: f64,
58+
radius: f64,
59+
}
60+
5561
trait HasArea {
5662
fn area(&self) -> f64;
5763

0 commit comments

Comments
 (0)