diff --git a/cidre/src/cm/time.rs b/cidre/src/cm/time.rs index 4544795b..d1d348ee 100644 --- a/cidre/src/cm/time.rs +++ b/cidre/src/cm/time.rs @@ -149,7 +149,7 @@ impl Time { /// ``` /// use cidre::cm; /// - /// assert!(cm::Time::infinity().is_pos_infinity()) + /// assert!(cm::Time::infinity().is_pos_infinity()); /// ``` #[inline] pub const fn is_pos_infinity(&self) -> bool { @@ -202,12 +202,6 @@ impl Time { unsafe { CMTimeMultiplyByFloat64(*self, multiplier) } } - #[doc(alias = "kCMTimeNegativeInfinity")] - #[inline] - pub fn neg_infinity() -> Time { - unsafe { kCMTimeNegativeInfinity } - } - /// Returns valid Time with value and timescale. Epoch is implied to be 0. /// /// ``` @@ -229,6 +223,12 @@ impl Time { unsafe { kCMTimePositiveInfinity } } + #[doc(alias = "kCMTimeNegativeInfinity")] + #[inline] + pub fn neg_infinity() -> Time { + unsafe { kCMTimeNegativeInfinity } + } + #[inline] pub fn show(&self) { unsafe { CMTimeShow(*self) }