Skip to content

Commit 43fd84a

Browse files
committed
Fix doctest.
1 parent 25d8ca1 commit 43fd84a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,10 +1236,10 @@ Implementations are defined with the keyword `impl`.
12361236
# type Point = {x: float, y: float};
12371237
# type Surface = int;
12381238
# type BoundingBox = {x: float, y: float, width: float, height: float};
1239-
# trait Shape { fn draw(surface); fn bounding_box() -> BoundingBox; }
1239+
# trait Shape { fn draw(Surface); fn bounding_box() -> BoundingBox; }
12401240
# fn do_draw_circle(s: Surface, c: Circle) { }
12411241
1242-
type Circle = {radius: float, center: point};
1242+
type Circle = {radius: float, center: Point};
12431243
12441244
impl Circle: Shape {
12451245
fn draw(s: Surface) { do_draw_circle(s, self); }

0 commit comments

Comments
 (0)