about summary refs log tree commit diff
path: root/src/libstd/time
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-07-23 09:26:50 +0000
committerbors <bors@rust-lang.org>2017-07-23 09:26:50 +0000
commit3cf2c04c799024bbec8e7b7187c2e8d39ace77b6 (patch)
tree5df126adfc15dcab4a788108239b8be3b95b30e8 /src/libstd/time
parent764b57ef56d61e8e40e1e08731d24ae1596a83b4 (diff)
parentc458627230bef878c86b133e0687614bcf64df56 (diff)
downloadrust-3cf2c04c799024bbec8e7b7187c2e8d39ace77b6.tar.gz
rust-3cf2c04c799024bbec8e7b7187c2e8d39ace77b6.zip
Auto merge of #43256 - Others:patch-1, r=steveklabnik
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
     ///