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 25d8ca1 commit 43fd84aCopy full SHA for 43fd84a
doc/rust.md
@@ -1236,10 +1236,10 @@ Implementations are defined with the keyword `impl`.
1236
# type Point = {x: float, y: float};
1237
# type Surface = int;
1238
# type BoundingBox = {x: float, y: float, width: float, height: float};
1239
-# trait Shape { fn draw(surface); fn bounding_box() -> BoundingBox; }
+# trait Shape { fn draw(Surface); fn bounding_box() -> BoundingBox; }
1240
# fn do_draw_circle(s: Surface, c: Circle) { }
1241
1242
-type Circle = {radius: float, center: point};
+type Circle = {radius: float, center: Point};
1243
1244
impl Circle: Shape {
1245
fn draw(s: Surface) { do_draw_circle(s, self); }
0 commit comments