Skip to content

Commit 8c04d69

Browse files
committed
Fix the docs for (LocalDate|YearMonth)Progression.random
1 parent d2e5542 commit 8c04d69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/common/src/LocalDateRange.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public infix fun LocalDate.downTo(that: LocalDate): LocalDateProgression =
258258
* Takes the step into account;
259259
* will not return any value within the range that would be skipped over by the progression.
260260
*
261-
* @throws IllegalArgumentException if the progression is empty.
261+
* @throws NoSuchElementException if the progression is empty.
262262
*
263263
* @sample kotlinx.datetime.test.samples.LocalDateRangeSamples.random
264264
*/

core/common/src/YearMonthRange.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public infix fun YearMonth.downTo(that: YearMonth): YearMonthProgression =
258258
* Takes the step into account;
259259
* will not return any value within the range that would be skipped over by the progression.
260260
*
261-
* @throws IllegalArgumentException if the progression is empty.
261+
* @throws NoSuchElementException if the progression is empty.
262262
*
263263
* @sample kotlinx.datetime.test.samples.YearMonthRangeSamples.random
264264
*/

0 commit comments

Comments
 (0)