Skip to content

Commit ef059fd

Browse files
author
Artem Tyurin
committed
Update Rust example
1 parent 9c0b8ed commit ef059fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/algebraic-data-types/algebraic-data-types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ enum Shape {
44
}
55

66
fn get_area(shape: &Shape) -> f64 {
7-
return match shape {
7+
match shape {
88
Shape::Square { side } => side * side,
99
Shape::Circle { radius } => {
1010
std::f64::consts::PI * radius * radius
1111
}
12-
};
12+
}
1313
}
1414

1515
fn main() {

0 commit comments

Comments
 (0)