We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec4362d commit 12224beCopy full SHA for 12224be
src/doc/reference.md
@@ -1435,11 +1435,11 @@ struct Foo;
1435
1436
trait Shape { fn area(&self) -> f64; }
1437
trait Circle : Shape { fn radius(&self) -> f64; }
1438
-# impl Shape for Foo {
1439
-# fn area(&self) -> f64 {
1440
-# 0.0
1441
-# }
1442
+impl Shape for Foo {
+ fn area(&self) -> f64 {
+ 0.0
+ }
+}
1443
impl Circle for Foo {
1444
fn radius(&self) -> f64 {
1445
println!("calling area: {}", self.area());
0 commit comments