Skip to content

Commit

Permalink
Merge pull request #1030 from tlyu/trait-impl-typo
Browse files Browse the repository at this point in the history
missing parameter name in Trait Implementations
  • Loading branch information
ehuss authored May 24, 2021
2 parents 81ad2cf + d1f22f6 commit 9c68af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/implementations.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ keyword.
# struct Point {x: f64, y: f64};
# type Surface = i32;
# struct BoundingBox {x: f64, y: f64, width: f64, height: f64};
# trait Shape { fn draw(&self, Surface); fn bounding_box(&self) -> BoundingBox; }
# trait Shape { fn draw(&self, s: Surface); fn bounding_box(&self) -> BoundingBox; }
# fn do_draw_circle(s: Surface, c: Circle) { }
struct Circle {
radius: f64,
Expand Down

0 comments on commit 9c68af3

Please sign in to comment.