Skip to content

Commit 16cca6d

Browse files
committed
I am bad at math
1 parent dc35a53 commit 16cca6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/guide-lifetimes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ copying.
307307
# }
308308
fn compute_area(shape: &Shape) -> f64 {
309309
match *shape {
310-
Circle(_, radius) => 2.0 * std::f64::consts::PI * radius * radius,
310+
Circle(_, radius) => std::f64::consts::PI * radius * radius,
311311
Rectangle(_, ref size) => size.w * size.h
312312
}
313313
}

0 commit comments

Comments
 (0)