Skip to content

Commit 8d26818

Browse files
committed
Fix comments
1 parent ba67eb9 commit 8d26818

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

core/common/src/LocalDate.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ import kotlin.internal.*
3535
*
3636
* ### Platform specifics
3737
*
38+
* The range of supported years is unspecified, but at least is enough to represent dates of all instants between
39+
* [Instant.DISTANT_PAST] and [Instant.DISTANT_FUTURE].
40+
*
3841
* On the JVM,
3942
* there are `LocalDate.toJavaLocalDate()` and `java.time.LocalDate.toKotlinLocalDate()`
4043
* extension functions to convert between `kotlinx.datetime` and `java.time` objects used for the same purpose.

core/common/src/LocalDateTime.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import kotlin.jvm.JvmName
6666
*
6767
* ### Platform specifics
6868
*
69-
* The range of supported years is platform-dependent, but at least is enough to represent dates of all instants between
69+
* The range of supported years is unspecified, but at least is enough to represent dates of all instants between
7070
* [Instant.DISTANT_PAST] and [Instant.DISTANT_FUTURE].
7171
*
7272
* On the JVM, there are `LocalDateTime.toJavaLocalDateTime()` and `java.time.LocalDateTime.toKotlinLocalDateTime()`

core/common/src/YearMonth.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import kotlinx.serialization.Serializable
2929
*
3030
* ### Platform specifics
3131
*
32-
* The range of supported years is platform-dependent, but at least is enough to represent year-months of all instants
32+
* The range of supported years is unspecified, but at least is enough to represent year-months of all instants
3333
* between [Instant.DISTANT_PAST] and [Instant.DISTANT_FUTURE] in any time zone.
3434
*
3535
* On the JVM,
@@ -236,6 +236,7 @@ public val LocalDate.yearMonth: YearMonth get() = YearMonth(year, month)
236236
/**
237237
* Combines this year-month with the specified day-of-month into a [LocalDate] value.
238238
*
239+
* @throw IllegalArgumentException if the [day] is out of range for this year-month.
239240
* @sample kotlinx.datetime.test.samples.YearMonthSamples.onDay
240241
*/
241242
public fun YearMonth.onDay(day: Int): LocalDate = LocalDate(year, month, day)
@@ -384,4 +385,4 @@ internal fun YearMonth.Companion.fromProlepticMonth(prolepticMonth: Long): YearM
384385
}
385386

386387
internal val YearMonth.Companion.MAX get() = LocalDate.MAX.yearMonth
387-
internal val YearMonth.Companion.MIN get() = LocalDate.MIN.yearMonth
388+
internal val YearMonth.Companion.MIN get() = LocalDate.MIN.yearMonth

0 commit comments

Comments
 (0)