fn coerce_ym(mut years: i32, mut months: i32, days: i32) -> (i32, i32) {
        if years > 0 && (months < 0 || (months == 0 && days < 0)) {
            years -= 1;
            months += 12;
        }
        (years, months)
    }
/// Fix years and months to valid, consistent ranges
Fix years and months to valid, consistent ranges
Fix years and months to valid consistent ranges
fn coerce_ym(mut years: i32, mut months: i32, days: i32) -> (i32, i32) {
        if years > 0 && (months < 0 || (months == 0 && days < 0)) {
            years -= 1;
            months += 12;
        }
        (years, months)
    }
fn coerce_ym ( mut years : i32 , mut months : i32 , days : i32 ) -> ( i32 , i32 ) { if years > 0 && ( months < 0 || ( months == 0 && days < 0 ) ) { years -= 1 ; months += 12 ; } ( years , months ) }
Fix years and months to valid, consistent ranges
Fix years and months to valid consistent ranges
years
i32
months
i32
days
i32
years
i32
months
i32
days
i32