Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
atcupps committed Jun 27, 2023
1 parent 7e2bc92 commit 12b6843
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/calendar/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ impl FromStr for Era {
}

/// Representation of a formattable year.
///
/// More fields may be added in the future for things like extended year
#[derive(Copy, Clone, Debug, PartialEq)]
#[non_exhaustive]
pub struct FormattableYear {
Expand All @@ -47,7 +49,7 @@ pub struct FormattableYear {
pub number: i32,

/// The year in the current cycle for cyclic calendars;
/// can be ignored and set to any value for non-cyclic calendars.
/// can be set to None for non-cyclic calendars
pub cyclic: Option<i32>,

/// The related ISO year. This is normally the ISO (proleptic Gregorian) year having the greatest
Expand Down

0 comments on commit 12b6843

Please sign in to comment.