From c458627230bef878c86b133e0687614bcf64df56 Mon Sep 17 00:00:00 2001 From: Others Date: Sat, 15 Jul 2017 16:23:11 -0400 Subject: [PATCH] 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. --- src/libstd/time/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libstd/time/mod.rs b/src/libstd/time/mod.rs index e4b8d457e2d29..4eed336a7a00d 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 ///