Skip to content

Commit 0c7d6c4

Browse files
committed
also update copysign docs
1 parent 53d4544 commit 0c7d6c4

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

library/std/src/f128.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ impl f128 {
248248
/// Returns a number composed of the magnitude of `self` and the sign of
249249
/// `sign`.
250250
///
251-
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise
252-
/// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of
253-
/// `sign` is returned. Note, however, that conserving the sign bit on NaN
254-
/// across arithmetical operations is not generally guaranteed.
255-
/// See [explanation of NaN as a special value](primitive@f128) for more info.
251+
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`.
252+
/// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is
253+
/// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations
254+
/// is not generally guaranteed. See [specification of NaN bit
255+
/// patterns](primitive@f32#nan-bit-patterns) for more info.
256256
///
257257
/// # Examples
258258
///

library/std/src/f16.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,11 @@ impl f16 {
247247
/// Returns a number composed of the magnitude of `self` and the sign of
248248
/// `sign`.
249249
///
250-
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise
251-
/// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of
252-
/// `sign` is returned. Note, however, that conserving the sign bit on NaN
253-
/// across arithmetical operations is not generally guaranteed.
254-
/// See [explanation of NaN as a special value](primitive@f16) for more info.
250+
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`.
251+
/// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is
252+
/// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations
253+
/// is not generally guaranteed. See [specification of NaN bit
254+
/// patterns](primitive@f32#nan-bit-patterns) for more info.
255255
///
256256
/// # Examples
257257
///

library/std/src/f32.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ impl f32 {
226226
/// Returns a number composed of the magnitude of `self` and the sign of
227227
/// `sign`.
228228
///
229-
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise
230-
/// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of
231-
/// `sign` is returned. Note, however, that conserving the sign bit on NaN
232-
/// across arithmetical operations is not generally guaranteed.
233-
/// See [explanation of NaN as a special value](primitive@f32) for more info.
229+
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`.
230+
/// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is
231+
/// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations
232+
/// is not generally guaranteed. See [specification of NaN bit
233+
/// patterns](primitive@f32#nan-bit-patterns) for more info.
234234
///
235235
/// # Examples
236236
///

library/std/src/f64.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ impl f64 {
226226
/// Returns a number composed of the magnitude of `self` and the sign of
227227
/// `sign`.
228228
///
229-
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise
230-
/// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of
231-
/// `sign` is returned. Note, however, that conserving the sign bit on NaN
232-
/// across arithmetical operations is not generally guaranteed.
233-
/// See [explanation of NaN as a special value](primitive@f32) for more info.
229+
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`.
230+
/// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is
231+
/// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations
232+
/// is not generally guaranteed. See [specification of NaN bit
233+
/// patterns](primitive@f32#nan-bit-patterns) for more info.
234234
///
235235
/// # Examples
236236
///

0 commit comments

Comments
 (0)