about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2015-11-25 22:50:47 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2015-11-25 22:50:47 +0200
commit44665c4e61acd72dc8b3cccee4cb3258a19194d0 (patch)
treef1de4930154ce2e593be43be0d2093fe55e8b68e /src/libstd
parentd447ceaedb08c1409e3c11b1cf616d2770d5559d (diff)
downloadrust-44665c4e61acd72dc8b3cccee4cb3258a19194d0.tar.gz
rust-44665c4e61acd72dc8b3cccee4cb3258a19194d0.zip
doc: add a pause
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/time/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/time/mod.rs b/src/libstd/time/mod.rs
index 3633f66fa59..ac8e6ca7d3a 100644
--- a/src/libstd/time/mod.rs
+++ b/src/libstd/time/mod.rs
@@ -94,8 +94,9 @@ impl Instant {
     ///
     /// # Panics
     ///
-    /// This function may panic if the current time is earlier than this instant
-    /// which can happen if an `Instant` is produced synthetically.
+    /// This function may panic if the current time is earlier than this
+    /// instant, which is something that can happen if an `Instant` is
+    /// produced synthetically.
     pub fn elapsed(&self) -> Duration {
         Instant::now().duration_from_earlier(*self)
     }