Skip to content

Commit

Permalink
Stablize {f32,f64}::copysign().
Browse files Browse the repository at this point in the history
  • Loading branch information
crlf0710 committed Mar 28, 2019
1 parent 237bf32 commit d9bdd01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/libstd/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ impl f32 {
/// # Examples
///
/// ```
/// #![feature(copysign)]
/// use std::f32;
///
/// let f = 3.5_f32;
Expand All @@ -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) }
}
Expand Down
3 changes: 1 addition & 2 deletions src/libstd/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ impl f64 {
/// # Examples
///
/// ```
/// #![feature(copysign)]
/// use std::f64;
///
/// let f = 3.5_f64;
Expand All @@ -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) }
}
Expand Down

0 comments on commit d9bdd01

Please sign in to comment.