From d9525674c3daeac6cca2f49251ae982e38c8b02e Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 25 Mar 2024 14:05:04 +0100 Subject: [PATCH] doc fixes --- src/time/cds.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/time/cds.rs b/src/time/cds.rs index f574bb5..5074b92 100644 --- a/src/time/cds.rs +++ b/src/time/cds.rs @@ -830,9 +830,9 @@ impl CdsTime { /// /// ## Errors /// - /// This function will return [TimestampError::DateBeforeCcsdsEpoch] or - /// [TimestampError::Cds] if the time is before the CCSDS epoch (1958-01-01T00:00:00+00:00) - /// or the CCSDS days value exceeds the allowed bit width (24 bits). + /// This function will return [CdsError::DateBeforeCcsdsEpoch] if the time is before the CCSDS + /// epoch (1958-01-01T00:00:00+00:00) or the CCSDS days value exceeds the allowed bit width + /// (24 bits). #[cfg(feature = "chrono")] pub fn from_dt_with_u24_days(dt: &chrono::DateTime) -> Result { Self::from_dt_generic(dt, LengthOfDaySegment::Long24Bits) @@ -842,9 +842,9 @@ impl CdsTime { /// /// ## Errors /// - /// This function will return [TimestampError::DateBeforeCcsdsEpoch] or - /// [TimestampError::Cds] if the time is before the CCSDS epoch (1958-01-01T00:00:00+00:00) - /// or the CCSDS days value exceeds the allowed bit width (24 bits). + /// This function will return [CdsError::DateBeforeCcsdsEpoch] if the time is before the CCSDS + /// epoch (1958-01-01T00:00:00+00:00) or the CCSDS days value exceeds the allowed bit width + /// (24 bits). pub fn from_unix_stamp_with_u24_days( unix_stamp: &UnixTime, submillis_prec: SubmillisPrecision, @@ -916,9 +916,9 @@ impl CdsTime { /// Create a provider from a [`chrono::DateTime`] struct. /// - /// This function will return a [TimestampError::DateBeforeCcsdsEpoch] or a - /// [TimestampError::Cds] if the time is before the CCSDS epoch (01-01-1958 00:00:00) or - /// the CCSDS days value exceeds the allowed bit width (16 bits). + /// This function will return a [CdsError::DateBeforeCcsdsEpoch] if the time is before the + /// CCSDS epoch (01-01-1958 00:00:00) or the CCSDS days value exceeds the allowed bit width + /// (16 bits). #[cfg(feature = "chrono")] pub fn from_dt_with_u16_days(dt: &chrono::DateTime) -> Result { Self::from_dt_generic(dt, LengthOfDaySegment::Short16Bits) @@ -934,9 +934,9 @@ impl CdsTime { /// /// ## Errors /// - /// This function will return [TimestampError::DateBeforeCcsdsEpoch] or - /// [TimestampError::Cds] if the time is before the CCSDS epoch (1958-01-01T00:00:00+00:00) - /// or the CCSDS days value exceeds the allowed bit width (24 bits). + /// This function will return [CdsError::DateBeforeCcsdsEpoch] if the time is before the CCSDS + /// epoch (1958-01-01T00:00:00+00:00) or the CCSDS days value exceeds the allowed bit width + /// (24 bits). pub fn from_unix_stamp_with_u16_days( unix_stamp: &UnixTime, submillis_prec: SubmillisPrecision,