Skip to content

Commit ad43379

Browse files
committed
Fix docs
1 parent 5afd2da commit ad43379

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

darwin-integration/nativeMain/src/Converters.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import kotlinx.cinterop.*
88
import platform.Foundation.*
99

1010
/**
11-
* Converts the Instant to an instance of [NSDate].
11+
* Converts the [Instant] to an instance of [NSDate].
1212
*
1313
* The conversion is lossy: Darwin uses millisecond precision to represent dates, and [Instant] allows for nanosecond
1414
* resolution.
@@ -24,7 +24,7 @@ public fun Instant.toNSDate(): NSDate {
2424
}
2525

2626
/**
27-
* Builds the corresponding [Instant].
27+
* Converts the [NSDate] to the corresponding [Instant].
2828
*
2929
* Even though Darwin only uses millisecond precision, it is possible that [date] uses larger resolution, storing
3030
* microseconds or even nanoseconds. In this case, the sub-millisecond parts of [date] are rounded to the nearest
@@ -37,7 +37,7 @@ public fun NSDate.toKotlinInstant(): Instant {
3737
}
3838

3939
/**
40-
* Converts the time zone to [NSTimeZone].
40+
* Converts the [TimeZone] to [NSTimeZone].
4141
*
4242
* If the time zone is represented as a fixed number of seconds from UTC+0 (for example, if it is the result of a call
4343
* to [TimeZone.offset]) and the offset is not given in even minutes but also includes seconds, this method throws
@@ -55,7 +55,7 @@ public fun TimeZone.toNSTimeZone(): NSTimeZone = if (this is ZoneOffset) {
5555
}
5656

5757
/**
58-
* Builds the corresponding [TimeZone].
58+
* Converts the [NSTimeZone] to the corresponding [TimeZone].
5959
*/
6060
public fun NSTimeZone.toKotlinTimeZone(): TimeZone = TimeZone.of(name)
6161

0 commit comments

Comments
 (0)