Skip to content

Commit 6f0e4af

Browse files
authored
Note leap month behavior (#7765)
Leftover note from Markus' review ## Changelog: N/A
1 parent 24bac4e commit 6f0e4af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/calendar/src/types.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,10 @@ impl fmt::Display for MonthCode {
475475
/// * `Month::new(7)` = `M07`
476476
/// * `Month::leap(2)` = `M02L`
477477
///
478+
/// Note that in Temporal's model, "leap month 2" (M02L) means the month that occurs after the
479+
/// non-leap month numbered 2 (M02), even if the calendar considers the month to be a variant of
480+
/// the subsequent month.
481+
///
478482
/// [Temporal]: https://tc39.es/proposal-intl-era-monthcode/
479483
#[derive(Copy, Clone, Debug, PartialEq, Hash, Eq, PartialOrd)]
480484
pub struct Month {

0 commit comments

Comments
 (0)