about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorRaph Levien <raph.levien@gmail.com>2018-10-24 15:19:23 -0700
committerRaph Levien <raph.levien@gmail.com>2018-10-24 15:19:23 -0700
commit538f65eb617f5d4596cf0d263e48998a70137ce1 (patch)
tree9879e747003fe32a0ec64a2eb5f35ca2fcd4b83d /src/libstd
parentf99911a4a0bead7dd1f9ef2f90442844434cc391 (diff)
downloadrust-538f65eb617f5d4596cf0d263e48998a70137ce1.tar.gz
rust-538f65eb617f5d4596cf0d263e48998a70137ce1.zip
Fix doc for new copysign functions
Thanks to @LukasKalbertodt for catching this. Addresses a comment
raised in #55169 after it was merged.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/f32.rs8
-rw-r--r--src/libstd/f64.rs8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/libstd/f32.rs b/src/libstd/f32.rs
index c3f225d1eb0..7d17aaf2f26 100644
--- a/src/libstd/f32.rs
+++ b/src/libstd/f32.rs
@@ -198,12 +198,12 @@ impl 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
     ///
diff --git a/src/libstd/f64.rs b/src/libstd/f64.rs
index da062dda77a..ecaaf8323ab 100644
--- a/src/libstd/f64.rs
+++ b/src/libstd/f64.rs
@@ -176,12 +176,12 @@ impl 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
     ///