Skip to content

Commit ae244d8

Browse files
authored
Rollup merge of rust-lang#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.
2 parents dbe7141 + aa48de0 commit ae244d8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

library/core/src/time.rs

-3
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,6 @@ impl Duration {
737737
/// # Examples
738738
/// ```
739739
/// #![feature(duration_checked_float)]
740-
///
741740
/// use std::time::Duration;
742741
///
743742
/// let dur = Duration::try_from_secs_f64(2.7);
@@ -799,7 +798,6 @@ impl Duration {
799798
/// # Examples
800799
/// ```
801800
/// #![feature(duration_checked_float)]
802-
///
803801
/// use std::time::Duration;
804802
///
805803
/// let dur = Duration::try_from_secs_f32(2.7);
@@ -1258,7 +1256,6 @@ impl fmt::Debug for Duration {
12581256
///
12591257
/// ```
12601258
/// #![feature(duration_checked_float)]
1261-
///
12621259
/// use std::time::Duration;
12631260
///
12641261
/// if let Err(e) = Duration::try_from_secs_f32(-1.0) {

0 commit comments

Comments
 (0)