about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArtyom Pavlov <newpavlov@gmail.com>2019-03-12 16:42:18 +0300
committerGitHub <noreply@github.com>2019-03-12 16:42:18 +0300
commit78b248dc4c17581211aaed5c3a449e5b07ebdb52 (patch)
treeb690d6d6908a07f8374c965f0599cc88f9638b96
parent197efb05243976a631107f1d6ad88bff65fd43e9 (diff)
downloadrust-78b248dc4c17581211aaed5c3a449e5b07ebdb52.tar.gz
rust-78b248dc4c17581211aaed5c3a449e5b07ebdb52.zip
fix typo
-rw-r--r--src/libcore/time.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/time.rs b/src/libcore/time.rs
index f106d06d2ff..ae6d8078fd2 100644
--- a/src/libcore/time.rs
+++ b/src/libcore/time.rs
@@ -639,7 +639,7 @@ impl Duration {
     ///
     /// let dur = Duration::new(2, 700_000_000);
     /// // note that due to rounding errors result is slightly different
-    /// // from 8.478 anf 847800.0
+    /// // from 8.478 and 847800.0
     /// assert_eq!(dur.mul_f32(3.14), Duration::new(8, 478_000_640));
     /// assert_eq!(dur.mul_f32(3.14e5), Duration::new(847799, 969_120_256));
     /// ```