about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCaleb Zulawski <caleb.zulawski@gmail.com>2022-04-15 13:47:43 -0400
committerCaleb Zulawski <caleb.zulawski@gmail.com>2022-04-15 13:47:43 -0400
commit528bc8593ad756239a6ded0443f10af657488559 (patch)
tree6366141493dce66862784b77c9900ba5a9413752
parent04be48ff97757a803e934ab8d2e90631b59557f8 (diff)
downloadrust-528bc8593ad756239a6ded0443f10af657488559.tar.gz
rust-528bc8593ad756239a6ded0443f10af657488559.zip
Improve copysign documentation
-rw-r--r--crates/core_simd/src/elements/float.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core_simd/src/elements/float.rs b/crates/core_simd/src/elements/float.rs
index fafbd2a4d21..456dd780dac 100644
--- a/crates/core_simd/src/elements/float.rs
+++ b/crates/core_simd/src/elements/float.rs
@@ -83,7 +83,7 @@ pub trait SimdFloat: Sized + Sealed {
 
     /// Returns each lane with the magnitude of `self` and the sign of `sign`.
     ///
-    /// If any lane is a `NAN`, then a `NAN` with the sign of `sign` is returned.
+    /// For any lane containing a `NAN`, a `NAN` with the sign of `sign` is returned.
     #[must_use = "method returns a new vector and does not mutate the original value"]
     fn copysign(self, sign: Self) -> Self;