diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2014-10-02 15:01:25 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2014-10-02 15:07:44 -0400 |
| commit | 16cca6dbada93a7468825e0eb106ea05a7417c01 (patch) | |
| tree | 2212014ef27deb02cca5ca6a0c0ae925c698fe00 | |
| parent | dc35a53d15527e5618d9531b4452bae857f60169 (diff) | |
| download | rust-16cca6dbada93a7468825e0eb106ea05a7417c01.tar.gz rust-16cca6dbada93a7468825e0eb106ea05a7417c01.zip | |
I am bad at math
| -rw-r--r-- | src/doc/guide-lifetimes.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide-lifetimes.md b/src/doc/guide-lifetimes.md index 545d286c5d7..dd79d63d514 100644 --- a/src/doc/guide-lifetimes.md +++ b/src/doc/guide-lifetimes.md @@ -307,7 +307,7 @@ copying. # } fn compute_area(shape: &Shape) -> f64 { match *shape { - Circle(_, radius) => 2.0 * std::f64::consts::PI * radius * radius, + Circle(_, radius) => std::f64::consts::PI * radius * radius, Rectangle(_, ref size) => size.w * size.h } } |
