]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/time.rs
Auto merge of #88343 - steffahn:fix_code_spacing, r=jyn514
[rust.git] / library / std / src / time.rs
index bf3eb5b30c77d356d9b1d256b25c9ae1f22c05ba..a4f7409b3594a5256a6831cbbeeaa52c8b754531 100644 (file)
@@ -472,7 +472,7 @@ pub fn now() -> SystemTime {
     /// as the system clock being adjusted either forwards or backwards).
     /// [`Instant`] can be used to measure elapsed time without this risk of failure.
     ///
-    /// If successful, [`Ok`]`(`[`Duration`]`)` is returned where the duration represents
+    /// If successful, <code>[Ok]\([Duration])</code> is returned where the duration represents
     /// the amount of time elapsed from the specified measurement to this one.
     ///
     /// Returns an [`Err`] if `earlier` is later than `self`, and the error
@@ -499,7 +499,7 @@ pub fn duration_since(&self, earlier: SystemTime) -> Result<Duration, SystemTime
     ///
     /// This function may fail as the underlying system clock is susceptible to
     /// drift and updates (e.g., the system clock could go backwards), so this
-    /// function might not always succeed. If successful, [`Ok`]`(`[`Duration`]`)` is
+    /// function might not always succeed. If successful, <code>[Ok]\([Duration])</code> is
     /// returned where the duration represents the amount of time elapsed from
     /// this time measurement to the current time.
     ///