Skip to content

Commit

Permalink
Fix misspellings in MonthNames.toKotlinCode() (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusmonster authored Nov 15, 2024
1 parent 73aad58 commit 85c1ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/common/src/format/LocalDateFormat.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public class MonthNames(
}

private fun MonthNames.toKotlinCode(): String = when (this.names) {
MonthNames.ENGLISH_FULL.names -> "MonthNames.${DayOfWeekNames.Companion::ENGLISH_FULL.name}"
MonthNames.ENGLISH_ABBREVIATED.names -> "MonthNames.${DayOfWeekNames.Companion::ENGLISH_ABBREVIATED.name}"
MonthNames.ENGLISH_FULL.names -> "MonthNames.${MonthNames.Companion::ENGLISH_FULL.name}"
MonthNames.ENGLISH_ABBREVIATED.names -> "MonthNames.${MonthNames.Companion::ENGLISH_ABBREVIATED.name}"
else -> names.joinToString(", ", "MonthNames(", ")", transform = String::toKotlinCode)
}

Expand Down

0 comments on commit 85c1ccd

Please sign in to comment.