about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorFabian Zaiser <fabian.zaiser@gmail.com>2018-03-28 01:41:40 +0200
committerFabian Zaiser <fabian.zaiser@gmail.com>2018-03-28 01:41:40 +0200
commitece87c3f4e76fd996dbbbaf8202f2adecff06c1e (patch)
tree0c4cb1ceeb9dd8e14f897a901c229ab90b2dd114 /src/libstd
parent9255bbd035ee032f1ccd47fcf93c87f7bc2e4bad (diff)
downloadrust-ece87c3f4e76fd996dbbbaf8202f2adecff06c1e.tar.gz
rust-ece87c3f4e76fd996dbbbaf8202f2adecff06c1e.zip
Address nits and tidy errors.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/f32.rs4
-rw-r--r--src/libstd/f64.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/f32.rs b/src/libstd/f32.rs
index ed63f445084..ca39089a958 100644
--- a/src/libstd/f32.rs
+++ b/src/libstd/f32.rs
@@ -331,9 +331,9 @@ impl f32 {
 
     /// Calculates Euclidean division, the matching method for `mod_euc`.
     ///
-    /// This computes the integer n such that
+    /// This computes the integer `n` such that
     /// `self = n * rhs + self.mod_euc(rhs)`.
-    /// In other words, the result is `self / rhs` rounded to the integer n
+    /// In other words, the result is `self / rhs` rounded to the integer `n`
     /// such that `self >= n * rhs`.
     ///
     /// ```
diff --git a/src/libstd/f64.rs b/src/libstd/f64.rs
index 320655c443c..a9585670ad0 100644
--- a/src/libstd/f64.rs
+++ b/src/libstd/f64.rs
@@ -317,9 +317,9 @@ impl f64 {
 
     /// Calculates Euclidean division, the matching method for `mod_euc`.
     ///
-    /// This computes the integer n such that
+    /// This computes the integer `n` such that
     /// `self = n * rhs + self.mod_euc(rhs)`.
-    /// In other words, the result is `self / rhs` rounded to the integer n
+    /// In other words, the result is `self / rhs` rounded to the integer `n`
     /// such that `self >= n * rhs`.
     ///
     /// ```