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
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue