From 783449993565fc6746426c9be20f7315c81b1d0c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 21 Mar 2024 16:35:32 +0000 Subject: [PATCH 1/2] docs for Instant: Break apart the summary line rustdoc treats the first "paragraph" as the summary line. Probably we dodn't want that whole paragraph there. --- src/instant.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/instant.rs b/src/instant.rs index 14cdddd..d447475 100644 --- a/src/instant.rs +++ b/src/instant.rs @@ -9,7 +9,9 @@ use super::duration::*; #[allow(unused_imports)] use super::helpers::*; -/// A measurement of a *monotonically* increasing clock. Opaque and useful only +/// A measurement of a *monotonically* increasing clock. +/// +/// Opaque and useful only /// with `Duration`. /// Resulting durations are actual durations; they do not get affected by /// clock adjustments, leap seconds, or similar. From cbf1b16bb13551c8a8fc8530e08be76dc41c9a3a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 25 Mar 2024 09:51:51 +0000 Subject: [PATCH 2/2] docs for Instant: Join a couple of lines As per https://github.com/jedisct1/rust-coarsetime/pull/33#pullrequestreview-1953158012 --- src/instant.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/instant.rs b/src/instant.rs index d447475..7a415e3 100644 --- a/src/instant.rs +++ b/src/instant.rs @@ -11,8 +11,7 @@ use super::helpers::*; /// A measurement of a *monotonically* increasing clock. /// -/// Opaque and useful only -/// with `Duration`. +/// Opaque and useful only with `Duration`. /// Resulting durations are actual durations; they do not get affected by /// clock adjustments, leap seconds, or similar. /// In order to get a measurement of the *wall clock*, use `Date` instead.