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) } }
|
||||
|
||||
let concrete = @CircleStruct{center:Point{x:3f,y:4f},radius:5f};
|
||||
|
||||
let mycircle: Circle = concrete as @Circle;
|
||||
let nonsense = mycircle.radius() * mycircle.area();
|
||||
~~~
|
||||
|
Loading…
Reference in New Issue
Block a user