Skip to content

Commit 71894d3

Browse files
authored
Merge pull request #5 from TonyMistark/master
trait bounds: draw parameter declaration error
2 parents 059771b + 15cccaf commit 71894d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trait-bounds.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
```rust
4141
# type Surface = i32;
4242
trait Shape {
43-
fn draw(&self, Surface);
43+
fn draw(&self, surface: Surface);
4444
fn name() -> &'static str;
4545
}
4646

0 commit comments

Comments
 (0)