From c1cbf7465d0320e7bf7f0102d3c2936ea3782c25 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 2 Apr 2015 04:10:36 -0400 Subject: [PATCH] Remove use of PI_2 Signed-off-by: Anders Kaseorg --- src/traits/structure.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/traits/structure.rs b/src/traits/structure.rs index 93b0b4dd..7547c957 100644 --- a/src/traits/structure.rs +++ b/src/traits/structure.rs @@ -387,7 +387,7 @@ macro_rules! impl_base_float( /// 2.0 * pi. fn two_pi() -> $n { - $n::consts::PI_2 + 2.0 * $n::consts::PI } /// pi / 2.0.