未验证 提交 401ee428 编写于 作者: P Pietro Albini 提交者: GitHub

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.
......@@ -198,12 +198,12 @@ pub fn signum(self) -> f32 {
}
}
/// Returns a number composed of the magnitude of one number and the sign of
/// another.
/// Returns a number composed of the magnitude of `self` and the sign of
/// `y`.
///
/// 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`
/// is returned.
/// equal to `-self`. If `self` is a `NAN`, then a `NAN` with the sign of
/// `y` is returned.
///
/// # Examples
///
......
......@@ -176,12 +176,12 @@ pub fn signum(self) -> f64 {
}
}
/// Returns a number composed of the magnitude of one number and the sign of
/// another.
/// Returns a number composed of the magnitude of `self` and the sign of
/// `y`.
///
/// 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`
/// is returned.
/// equal to `-self`. If `self` is a `NAN`, then a `NAN` with the sign of
/// `y` is returned.
///
/// # Examples
///
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册