Skip to content

Commit aa48de0

Browse files
authored
Remove extra lines in examples for Duration::try_from_secs_*
1 parent e269e6b commit aa48de0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

library/core/src/time.rs

Lines changed: 0 additions & 3 deletions
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)