1
Fork 0

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
commit ae244d8b78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -737,7 +737,6 @@ impl Duration {
/// # Examples /// # Examples
/// ``` /// ```
/// #![feature(duration_checked_float)] /// #![feature(duration_checked_float)]
///
/// use std::time::Duration; /// use std::time::Duration;
/// ///
/// let dur = Duration::try_from_secs_f64(2.7); /// let dur = Duration::try_from_secs_f64(2.7);
@ -799,7 +798,6 @@ impl Duration {
/// # Examples /// # Examples
/// ``` /// ```
/// #![feature(duration_checked_float)] /// #![feature(duration_checked_float)]
///
/// use std::time::Duration; /// use std::time::Duration;
/// ///
/// let dur = Duration::try_from_secs_f32(2.7); /// let dur = Duration::try_from_secs_f32(2.7);
@ -1258,7 +1256,6 @@ impl fmt::Debug for Duration {
/// ///
/// ``` /// ```
/// #![feature(duration_checked_float)] /// #![feature(duration_checked_float)]
///
/// use std::time::Duration; /// use std::time::Duration;
/// ///
/// if let Err(e) = Duration::try_from_secs_f32(-1.0) { /// if let Err(e) = Duration::try_from_secs_f32(-1.0) {