mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Formatting cleanup.
I had put a line break in to try to stress the binding of mycircle, but generated document looks cleaner without newline.
This commit is contained in:
parent
6cabe2b902
commit
2dda6d6f5d
@ -2219,7 +2219,6 @@ Likewise, supertrait methods may also be called on trait objects.
|
|||||||
# impl CircleStruct: Shape { fn area(&self) -> float { pi * square(self.radius) } }
|
# impl CircleStruct: Shape { fn area(&self) -> float { pi * square(self.radius) } }
|
||||||
|
|
||||||
let concrete = @CircleStruct{center:Point{x:3f,y:4f},radius:5f};
|
let concrete = @CircleStruct{center:Point{x:3f,y:4f},radius:5f};
|
||||||
|
|
||||||
let mycircle: Circle = concrete as @Circle;
|
let mycircle: Circle = concrete as @Circle;
|
||||||
let nonsense = mycircle.radius() * mycircle.area();
|
let nonsense = mycircle.radius() * mycircle.area();
|
||||||
~~~
|
~~~
|
||||||
|
Loading…
Reference in New Issue
Block a user