Skip to content

Commit

Permalink
Doctests need feature
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Jun 20, 2020
1 parent 3ff5879 commit ad7fd62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcore/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ impl Duration {
/// # Examples
///
/// ```
/// #![feature(duration_zero)]
/// use std::time::Duration;
///
/// let duration = Duration::zero();
Expand All @@ -247,6 +248,7 @@ impl Duration {
/// # Examples
///
/// ```
/// #![feature(duration_zero)]
/// use std::time::Duration;
///
/// assert!(Duration::zero().is_zero());
Expand Down

0 comments on commit ad7fd62

Please sign in to comment.