From 017db3d36cfc7cc229e47f4ecfc9f3657b3dab05 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Thu, 10 Sep 2015 21:11:16 +0300 Subject: [PATCH] Correct reference to withDefault method in documentation. --- libraries/stdlib/src/kotlin/collections/MapWithDefault.kt | 2 +- libraries/stdlib/src/kotlin/properties/MapAccessors.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/stdlib/src/kotlin/collections/MapWithDefault.kt b/libraries/stdlib/src/kotlin/collections/MapWithDefault.kt index fc65667a3d5..2e994be36d4 100644 --- a/libraries/stdlib/src/kotlin/collections/MapWithDefault.kt +++ b/libraries/stdlib/src/kotlin/collections/MapWithDefault.kt @@ -6,7 +6,7 @@ import kotlin.platform.platformName /** * Returns the value for the given key, or the implicit default value for this map. * By default no implicit value is provided for maps and a [NoSuchElementException] is thrown. - * To create a map with implicit default value use [Map.withDefault] method. + * To create a map with implicit default value use [withDefault] method. * * @throws NoSuchElementException when the map doesn't contain value for the specified key and no implicit default was provided for that map. */ diff --git a/libraries/stdlib/src/kotlin/properties/MapAccessors.kt b/libraries/stdlib/src/kotlin/properties/MapAccessors.kt index 6b7bf833775..e9812c79f19 100644 --- a/libraries/stdlib/src/kotlin/properties/MapAccessors.kt +++ b/libraries/stdlib/src/kotlin/properties/MapAccessors.kt @@ -12,7 +12,7 @@ import kotlin.platform.platformName * @param property the metadata for the property, used to get the name of property and lookup the value corresponding to this name in the map. * @return the property value. * - * @throws NoSuchElementException when the map doesn't contain value for the property name and doesn't provide an implicit default (see [Map.withDefault]). + * @throws NoSuchElementException when the map doesn't contain value for the property name and doesn't provide an implicit default (see [withDefault]). */ public fun Map.get(thisRef: Any?, property: PropertyMetadata): V = getOrImplicitDefault(property.name) as V @@ -22,7 +22,7 @@ public fun Map.get(thisRef: Any?, property: PropertyMetadata): * @param property the metadata for the property, used to get the name of property and lookup the value corresponding to this name in the map. * @return the property value. * - * @throws NoSuchElementException when the map doesn't contain value for the property name and doesn't provide an implicit default (see [Map.withDefault]). + * @throws NoSuchElementException when the map doesn't contain value for the property name and doesn't provide an implicit default (see [withDefault]). */ platformName("getVar") public fun MutableMap.get(thisRef: Any?, property: PropertyMetadata): V = getOrImplicitDefault(property.name) as V