Skip to content

Commit

Permalink
mark div_duration methods as unstable, update tracking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov authored Jul 30, 2019
1 parent ad36324 commit 55ee8fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ impl Duration {
/// let dur2 = Duration::new(5, 400_000_000);
/// assert_eq!(dur1.div_duration_f64(dur2), 0.5);
/// ```
#[stable(feature = "duration_float", since = "1.38.0")]
#[unstable(feature = "div_duration", issue = "63139")]
#[inline]
pub fn div_duration_f64(self, rhs: Duration) -> f64 {
self.as_secs_f64() / rhs.as_secs_f64()
Expand All @@ -711,7 +711,7 @@ impl Duration {
/// let dur2 = Duration::new(5, 400_000_000);
/// assert_eq!(dur1.div_duration_f32(dur2), 0.5);
/// ```
#[stable(feature = "duration_float", since = "1.38.0")]
#[unstable(feature = "div_duration", issue = "63139")]
#[inline]
pub fn div_duration_f32(self, rhs: Duration) -> f32 {
self.as_secs_f32() / rhs.as_secs_f32()
Expand Down

0 comments on commit 55ee8fe

Please sign in to comment.