Skip to content

Commit d9bdd01

Browse files
committed
Stablize {f32,f64}::copysign().
1 parent 237bf32 commit d9bdd01

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/libstd/f32.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ impl f32 {
202202
/// # Examples
203203
///
204204
/// ```
205-
/// #![feature(copysign)]
206205
/// use std::f32;
207206
///
208207
/// let f = 3.5_f32;
@@ -216,7 +215,7 @@ impl f32 {
216215
/// ```
217216
#[inline]
218217
#[must_use]
219-
#[unstable(feature="copysign", issue="55169")]
218+
#[stable(feature = "copysign", since = "1.35.0")]
220219
pub fn copysign(self, y: f32) -> f32 {
221220
unsafe { intrinsics::copysignf32(self, y) }
222221
}

src/libstd/f64.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ impl f64 {
180180
/// # Examples
181181
///
182182
/// ```
183-
/// #![feature(copysign)]
184183
/// use std::f64;
185184
///
186185
/// let f = 3.5_f64;
@@ -194,7 +193,7 @@ impl f64 {
194193
/// ```
195194
#[inline]
196195
#[must_use]
197-
#[unstable(feature="copysign", issue="55169")]
196+
#[stable(feature = "copysign", since = "1.35.0")]
198197
pub fn copysign(self, y: f64) -> f64 {
199198
unsafe { intrinsics::copysignf64(self, y) }
200199
}

0 commit comments

Comments
 (0)