Stablize {f32,f64}::copysign().

This commit is contained in:
CrLF0710 2019-03-29 03:09:29 +08:00
parent 237bf3244f
commit d9bdd01ac0
2 changed files with 2 additions and 4 deletions

View File

@ -202,7 +202,6 @@ impl f32 {
/// # Examples
///
/// ```
/// #![feature(copysign)]
/// use std::f32;
///
/// let f = 3.5_f32;
@ -216,7 +215,7 @@ impl f32 {
/// ```
#[inline]
#[must_use]
#[unstable(feature="copysign", issue="55169")]
#[stable(feature = "copysign", since = "1.35.0")]
pub fn copysign(self, y: f32) -> f32 {
unsafe { intrinsics::copysignf32(self, y) }
}

View File

@ -180,7 +180,6 @@ impl f64 {
/// # Examples
///
/// ```
/// #![feature(copysign)]
/// use std::f64;
///
/// let f = 3.5_f64;
@ -194,7 +193,7 @@ impl f64 {
/// ```
#[inline]
#[must_use]
#[unstable(feature="copysign", issue="55169")]
#[stable(feature = "copysign", since = "1.35.0")]
pub fn copysign(self, y: f64) -> f64 {
unsafe { intrinsics::copysignf64(self, y) }
}