提交 538f65eb 编写于 作者: R Raph Levien

Fix doc for new copysign functions

Thanks to @LukasKalbertodt for catching this. Addresses a comment
raised in #55169 after it was merged.
上级 f99911a4
......@@ -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.
先完成此消息的编辑!
想要评论请 注册