Skip to content

Commit

Permalink
Derive defmt::Format for RtcError, fix doc typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hfly0 committed Jul 15, 2024
1 parent a09724f commit fa584e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rp2040-hal/src/rtc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ impl RealTimeClock {
}
}

/// Errors that can occur on methods on [RtcClock]
/// Errors that can occur on methods on [RealTimeClock]
#[derive(Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum RtcError {
/// An invalid DateTime was given or stored on the hardware.
InvalidDateTime(DateTimeError),
Expand Down

0 comments on commit fa584e6

Please sign in to comment.