about summary refs log tree commit diff
path: root/src/libstd/time
diff options
context:
space:
mode:
authorOthers <gregorpeach@gmail.com>2017-07-15 16:23:11 -0400
committerGitHub <noreply@github.com>2017-07-15 16:23:11 -0400
commitc458627230bef878c86b133e0687614bcf64df56 (patch)
tree8536989a495969d2f9926ea9f30e7ea7e146340e /src/libstd/time
parenta783fe2f77dfc69bdfbee539488403ff8883fd25 (diff)
downloadrust-c458627230bef878c86b133e0687614bcf64df56.tar.gz
rust-c458627230bef878c86b133e0687614bcf64df56.zip
Improve panic docs for Instant::duration_since
The docs for Instant::duration_since has a confusing section on panicking. It's
much more clear without the second two sentences of description.
Diffstat (limited to 'src/libstd/time')
-rw-r--r--src/libstd/time/mod.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstd/time/mod.rs b/src/libstd/time/mod.rs
index e4b8d457e2d..4eed336a7a0 100644
--- a/src/libstd/time/mod.rs
+++ b/src/libstd/time/mod.rs
@@ -163,10 +163,7 @@ impl Instant {
     ///
     /// # Panics
     ///
-    /// This function will panic if `earlier` is later than `self`, which should
-    /// only be possible if `earlier` was created after `self`. Because
-    /// `Instant` is monotonic, the only time that this should happen should be
-    /// a bug.
+    /// This function will panic if `earlier` is later than `self`.
     ///
     /// # Examples
     ///