@@ -11,7 +11,7 @@ import kotlinx.datetime.serializers.*
1111import kotlinx.serialization.Serializable
1212
1313/* *
14- * The year-month part of [LocalDate], without the day-of-month.
14+ * The year-month part of [LocalDate], without a day-of-month.
1515 *
1616 * This class represents years and months without a reference to a particular time zone.
1717 * As such, these objects may denote different time intervals in different time zones: for someone in Berlin,
@@ -50,6 +50,7 @@ import kotlinx.serialization.Serializable
5050 * See sample 3.
5151 *
5252 * Additionally, there are several `kotlinx-serialization` serializers for [YearMonth]:
53+ * - The default serializer, delegating to [toString] and [parse].
5354 * - [YearMonthIso8601Serializer] for the ISO 8601 extended format.
5455 * - [YearMonthComponentSerializer] for an object with components.
5556 *
@@ -65,7 +66,7 @@ public expect class YearMonth
6566 * The [month] component is 1-based.
6667 *
6768 * The supported ranges of components:
68- * - [year] the range is platform-dependent , but at least is enough to represent year-months of all instants between
69+ * - [year] the range is unspecified , but at least is enough to represent year-months of all instants between
6970 * [Instant.DISTANT_PAST] and [Instant.DISTANT_FUTURE] in any time zone.
7071 * - [month] `1..12`
7172 *
@@ -120,7 +121,7 @@ public constructor(year: Int, month: Int) : Comparable<YearMonth> {
120121 /* *
121122 * Constructs a [YearMonth] instance from the given year-month components.
122123 *
123- * The range for [year] is platform-dependent , but at least is enough to represent year-months of all instants
124+ * The range for [year] is unspecified , but at least is enough to represent year-months of all instants
124125 * between [Instant.DISTANT_PAST] and [Instant.DISTANT_FUTURE] in any time zone.
125126 *
126127 * @throws IllegalArgumentException if [year] is out of range.
@@ -380,7 +381,6 @@ internal fun YearMonth.Companion.fromProlepticMonth(prolepticMonth: Long): YearM
380381 " Year $year is out of range: ${LocalDate .MIN .year} ..${LocalDate .MAX .year} "
381382 }
382383 val month = prolepticMonth.mod(12 ) + 1
383- println (" proleptic month: ${prolepticMonth} , year: $year , month: $month " )
384384 return YearMonth (year.toInt(), month)
385385}
386386
0 commit comments