]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/time.rs
Auto merge of #103138 - nnethercote:merge-BBs, r=bjorn3
[rust.git] / library / std / src / time.rs
index 759a59e1f98d2e8c0dec05cf630f3eb0bbf5eb8f..ecd06ebf743ab49969617210f0b326e6b45aaf5a 100644 (file)
@@ -43,8 +43,8 @@
 #[stable(feature = "time", since = "1.3.0")]
 pub use core::time::Duration;
 
-#[unstable(feature = "duration_checked_float", issue = "83400")]
-pub use core::time::FromFloatSecsError;
+#[stable(feature = "duration_checked_float", since = "1.66.0")]
+pub use core::time::TryFromFloatSecsError;
 
 /// A measurement of a monotonically nondecreasing clock.
 /// Opaque and useful only with [`Duration`].
@@ -356,7 +356,7 @@ pub fn saturating_duration_since(&self, earlier: Instant) -> Duration {
     ///
     /// # Panics
     ///
-    /// Previous rust versions panicked when self was earlier than the current time. Currently this
+    /// Previous rust versions panicked when the current time was earlier than self. Currently this
     /// method returns a Duration of zero in that case. Future versions may reintroduce the panic.
     /// See [Monotonicity].
     ///