@@ -459,7 +459,7 @@ impl Date<KoreanTraditional> {
459459 /// .expect("Failed to initialize Date instance.");
460460 ///
461461 /// assert_eq!(date.cyclic_year().related_iso, 2025);
462- /// assert_eq!(date.month().as_input (), Month::new(5));
462+ /// assert_eq!(date.month().to_input (), Month::new(5));
463463 /// assert_eq!(date.day_of_month().0, 25);
464464 /// ```
465465 pub fn try_new_korean_traditional (
@@ -808,7 +808,7 @@ impl Date<ChineseTraditional> {
808808 /// .expect("Failed to initialize Date instance.");
809809 ///
810810 /// assert_eq!(date.cyclic_year().related_iso, 2025);
811- /// assert_eq!(date.month().as_input (), Month::new(5));
811+ /// assert_eq!(date.month().to_input (), Month::new(5));
812812 /// assert_eq!(date.day_of_month().0, 25);
813813 /// ```
814814 pub fn try_new_chinese_traditional (
@@ -1376,7 +1376,7 @@ mod test {
13761376
13771377 assert_eq ! ( chinese. cyclic_year( ) . related_iso, -2636 ) ;
13781378 assert_eq ! ( chinese. month( ) . ordinal, 1 ) ;
1379- assert_eq ! ( chinese. month( ) . as_input ( ) , Month :: new( 1 ) ) ;
1379+ assert_eq ! ( chinese. month( ) . to_input ( ) , Month :: new( 1 ) ) ;
13801380 assert_eq ! ( chinese. day_of_month( ) . 0 , 1 ) ;
13811381 assert_eq ! ( chinese. cyclic_year( ) . year, 1 ) ;
13821382 assert_eq ! ( chinese. cyclic_year( ) . related_iso, -2636 ) ;
@@ -1569,7 +1569,7 @@ mod test {
15691569 let iso = Date :: try_new_iso ( case. iso_year , case. iso_month , case. iso_day ) . unwrap ( ) ;
15701570 let chinese = iso. to_calendar ( ChineseTraditional :: new ( ) ) ;
15711571 assert_eq ! (
1572- chinese. month( ) . as_input ( ) ,
1572+ chinese. month( ) . to_input ( ) ,
15731573 case. month,
15741574 "Month codes did not match for test case: {case:?}"
15751575 ) ;
@@ -1732,7 +1732,7 @@ mod test {
17321732 } ;
17331733 let date = Date :: try_from_fields ( fields, options, cal) . unwrap ( ) ;
17341734 assert_eq ! (
1735- date. month( ) . as_input ( ) ,
1735+ date. month( ) . to_input ( ) ,
17361736 Month :: new( 1 ) ,
17371737 "Month was successfully constrained"
17381738 ) ;
0 commit comments