Correct failing book test
This commit is contained in:
parent
a5a5c1074e
commit
3da5f9327a
1 changed files with 6 additions and 0 deletions
|
@ -52,6 +52,12 @@ implementing this trait passed as a parameter. `Self`, `&Self` or `&mut Self`
|
||||||
may be used depending on the level of ownership required.
|
may be used depending on the level of ownership required.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
struct Circle {
|
||||||
|
x: f64,
|
||||||
|
y: f64,
|
||||||
|
radius: f64,
|
||||||
|
}
|
||||||
|
|
||||||
trait HasArea {
|
trait HasArea {
|
||||||
fn area(&self) -> f64;
|
fn area(&self) -> f64;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue