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.
This commit is contained in:
Matthias Krüger
2021-10-29 00:30:30 +02:00
committed by GitHub
-3
View File
@@ -737,7 +737,6 @@ pub const fn from_secs_f64(secs: f64) -> Duration {
/// # Examples
/// ```
/// #![feature(duration_checked_float)]
///
/// use std::time::Duration;
///
/// let dur = Duration::try_from_secs_f64(2.7);
@@ -799,7 +798,6 @@ pub const fn from_secs_f32(secs: f32) -> Duration {
/// # Examples
/// ```
/// #![feature(duration_checked_float)]
///
/// use std::time::Duration;
///
/// let dur = Duration::try_from_secs_f32(2.7);
@@ -1258,7 +1256,6 @@ fn fmt_decimal(
///
/// ```
/// #![feature(duration_checked_float)]
///
/// use std::time::Duration;
///
/// if let Err(e) = Duration::try_from_secs_f32(-1.0) {