Rollup merge of #55328 - raphlinus:copysign_typo, r=joshtriplett
Fix doc for new copysign functions Thanks to @LukasKalbertodt for catching this. Addresses a comment raised in #55169 after it was merged.
This commit is contained in:
commit
401ee42893
2 changed files with 8 additions and 8 deletions
|
@ -198,12 +198,12 @@ impl f32 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a number composed of the magnitude of one number and the sign of
|
/// Returns a number composed of the magnitude of `self` and the sign of
|
||||||
/// another.
|
/// `y`.
|
||||||
///
|
///
|
||||||
/// Equal to `self` if the sign of `self` and `y` are the same, otherwise
|
/// Equal to `self` if the sign of `self` and `y` are the same, otherwise
|
||||||
/// equal to `-y`. If `self` is a `NAN`, then a `NAN` with the sign of `y`
|
/// equal to `-self`. If `self` is a `NAN`, then a `NAN` with the sign of
|
||||||
/// is returned.
|
/// `y` is returned.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
|
@ -176,12 +176,12 @@ impl f64 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a number composed of the magnitude of one number and the sign of
|
/// Returns a number composed of the magnitude of `self` and the sign of
|
||||||
/// another.
|
/// `y`.
|
||||||
///
|
///
|
||||||
/// Equal to `self` if the sign of `self` and `y` are the same, otherwise
|
/// Equal to `self` if the sign of `self` and `y` are the same, otherwise
|
||||||
/// equal to `-y`. If `self` is a `NAN`, then a `NAN` with the sign of `y`
|
/// equal to `-self`. If `self` is a `NAN`, then a `NAN` with the sign of
|
||||||
/// is returned.
|
/// `y` is returned.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue