about summary refs log tree commit diff
diff options
context:
space:
mode:
authormbartlett21 <29034492+mbartlett21@users.noreply.github.com>2021-10-27 13:52:39 +1000
committerGitHub <noreply@github.com>2021-10-27 13:52:39 +1000
commitaa48de0b0ea5fa46a12e0691669e12c28b89180e (patch)
treec07b917acdeebc31180bb1bbefb5d0d651dad489
parente269e6bf47f40c9046cd44ab787881d700099252 (diff)
downloadrust-aa48de0b0ea5fa46a12e0691669e12c28b89180e.tar.gz
rust-aa48de0b0ea5fa46a12e0691669e12c28b89180e.zip
Remove extra lines in examples for `Duration::try_from_secs_*`
-rw-r--r--library/core/src/time.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/library/core/src/time.rs b/library/core/src/time.rs
index 7114f2d652e..80220a1ecb2 100644
--- a/library/core/src/time.rs
+++ b/library/core/src/time.rs
@@ -737,7 +737,6 @@ impl Duration {
     /// # Examples
     /// ```
     /// #![feature(duration_checked_float)]
-    ///
     /// use std::time::Duration;
     ///
     /// let dur = Duration::try_from_secs_f64(2.7);
@@ -799,7 +798,6 @@ impl Duration {
     /// # Examples
     /// ```
     /// #![feature(duration_checked_float)]
-    ///
     /// use std::time::Duration;
     ///
     /// let dur = Duration::try_from_secs_f32(2.7);
@@ -1258,7 +1256,6 @@ impl fmt::Debug for Duration {
 ///
 /// ```
 /// #![feature(duration_checked_float)]
-///
 /// use std::time::Duration;
 ///
 /// if let Err(e) = Duration::try_from_secs_f32(-1.0) {