File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ impl f32 {
221
221
/// assert!(f32::NAN.copysign(1.0).is_nan());
222
222
/// ```
223
223
#[ inline]
224
- #[ unstable( feature="copysign" , issue="0 " ) ]
224
+ #[ unstable( feature="copysign" , issue="55169 " ) ]
225
225
pub fn copysign ( self , y : f32 ) -> f32 {
226
226
unsafe { intrinsics:: copysignf32 ( self , y) }
227
227
}
Original file line number Diff line number Diff line change @@ -177,10 +177,11 @@ impl f64 {
177
177
}
178
178
179
179
/// Returns a number composed of the magnitude of one number and the sign of
180
- /// another, or `NAN` if the number is `NAN` .
180
+ /// another.
181
181
///
182
182
/// Equal to `self` if the sign of `self` and `y` are the same, otherwise
183
- /// equal to `-y`.
183
+ /// equal to `-y`. If `self` is a `NAN`, then a `NAN` with the sign of `y`
184
+ /// is returned.
184
185
///
185
186
/// # Examples
186
187
///
@@ -198,7 +199,7 @@ impl f64 {
198
199
/// assert!(f64::NAN.copysign(1.0).is_nan());
199
200
/// ```
200
201
#[ inline]
201
- #[ unstable( feature="copysign" , issue="0 " ) ]
202
+ #[ unstable( feature="copysign" , issue="55169 " ) ]
202
203
pub fn copysign ( self , y : f64 ) -> f64 {
203
204
unsafe { intrinsics:: copysignf64 ( self , y) }
204
205
}
You can’t perform that action at this time.
0 commit comments