Skip to content

Commit

Permalink
fix trait implementation example
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Aug 19, 2023
1 parent e137990 commit 19593d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traits/implementing.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct Rectangle {
impl Shape for Rectangle {
fn area(self): f32 {
ret self.width * self.height
ret f32(self.width * self.height)
}
}
Expand Down

0 comments on commit 19593d6

Please sign in to comment.