mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
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:
commit
ae244d8b78
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user