From 2c79b1f89ebc347a971ef35d891e8ff9bd6cd5b1 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Thu, 22 Aug 2019 18:08:00 +0300 Subject: [PATCH] Minor: fix incorrect reference in kdoc --- libraries/stdlib/src/kotlin/time/Duration.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/stdlib/src/kotlin/time/Duration.kt b/libraries/stdlib/src/kotlin/time/Duration.kt index 479e8db50c6..8c889de539a 100644 --- a/libraries/stdlib/src/kotlin/time/Duration.kt +++ b/libraries/stdlib/src/kotlin/time/Duration.kt @@ -69,7 +69,7 @@ public inline class Duration internal constructor(internal val value: Double) : /** Returns a duration whose value is this duration value divided by the given [scale] number. */ public operator fun div(scale: Double): Duration = Duration(value / scale) - /** Returns a number that is the ratio of [this] and [other] duration values. */ + /** Returns a number that is the ratio of this and [other] duration values. */ public operator fun div(other: Duration): Double = this.value / other.value /** Returns true, if the duration value is less than zero. */ @@ -295,7 +295,7 @@ public inline class Duration internal constructor(internal val value: Double) : * and `f` is a fractional part of second. Depending on the roundness of the value the fractional part can be formatted with either * 0, 3, 6, or 9 decimal digits. * - * If the hours component absolute value of this duration is greater than [Int.MAX_VAlUE], it is replaced with [Int.MAX_VALUE], + * If the hours component absolute value of this duration is greater than [Int.MAX_VALUE], it is replaced with [Int.MAX_VALUE], * so the infinite duration is formatted as `"PT2147483647H". * * Negative durations are indicated with the sign `-` in the beginning of the returned string, for example, `"-PT5M30S"`.