From e3962e8775a7d6bcb809695c4fbcc73a1e0a8b9b Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 2 Apr 2015 04:12:48 -0400 Subject: [PATCH 1/2] FRAC_2_SQRTPI was renamed to FRAC_2_SQRT_PI 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 52b3a100..adfdd165 100644 --- a/src/traits/structure.rs +++ b/src/traits/structure.rs @@ -425,7 +425,7 @@ macro_rules! impl_base_float( /// 2.0 / sqrt(pi). fn frac_2_sqrtpi() -> $n { - $n::consts::FRAC_2_SQRTPI + $n::consts::FRAC_2_SQRT_PI } From 9d428be8b4606675d82627343f6aad1cafbe5965 Mon Sep 17 00:00:00 2001 From: Eduard Bopp Date: Sat, 4 Apr 2015 16:57:59 +0200 Subject: [PATCH 2/2] Rename frac_2_sqrtpi -> frac_2_sqrt_pi --- src/traits/structure.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/traits/structure.rs b/src/traits/structure.rs index adfdd165..57630bc4 100644 --- a/src/traits/structure.rs +++ b/src/traits/structure.rs @@ -36,7 +36,7 @@ pub trait BaseFloat: Float + Cast + BaseNum { /// 2.0 / pi. fn frac_2_pi() -> Self; /// 2.0 / sqrt(pi). - fn frac_2_sqrtpi() -> Self; + fn frac_2_sqrt_pi() -> Self; /// Euler's number. fn e() -> Self; @@ -424,7 +424,7 @@ macro_rules! impl_base_float( } /// 2.0 / sqrt(pi). - fn frac_2_sqrtpi() -> $n { + fn frac_2_sqrt_pi() -> $n { $n::consts::FRAC_2_SQRT_PI }