diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-10-29 00:30:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-29 00:30:30 +0200 |
| commit | ae244d8b784f8a3abb89ca9a34ee6a9b478ac7cf (patch) | |
| tree | e0ead4f058440ff6e5727b18d6478c65dd283946 | |
| parent | dbe7141ac046d625946543936657ea6206b4cdd8 (diff) | |
| parent | aa48de0b0ea5fa46a12e0691669e12c28b89180e (diff) | |
| download | rust-ae244d8b784f8a3abb89ca9a34ee6a9b478ac7cf.tar.gz rust-ae244d8b784f8a3abb89ca9a34ee6a9b478ac7cf.zip | |
Rollup merge of #90336 - mbartlett21:patch-4, r=Mark-Simulacrum
Remove extra lines in examples for `Duration::try_from_secs_*` None of the other examples have extra lines below the `#![feature(...)]` statements, so I thought it appropriate that these examples shouldn't either.
| -rw-r--r-- | library/core/src/time.rs | 3 |
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) { |
