aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/Kotlin/DocumentationBuilder.kt')
-rw-r--r--core/src/main/kotlin/Kotlin/DocumentationBuilder.kt9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
index 2ab43fa1..fcb86d53 100644
--- a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
+++ b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
@@ -234,10 +234,11 @@ class DocumentationBuilder
}
fun DocumentationNode.appendSinceKotlin(annotation: DocumentationNode) {
- var kotlinVersion = annotation.detail(NodeKind.Parameter).detail(NodeKind.Value).name
- if (kotlinVersion.startsWith('\"') && kotlinVersion.endsWith('\"')) {
- kotlinVersion = kotlinVersion.substring(1..kotlinVersion.length-2)
- }
+ val kotlinVersion = annotation
+ .detail(NodeKind.Parameter)
+ .detail(NodeKind.Value)
+ .name.removeSurrounding("\"")
+
append(platformNodeRegistry["Kotlin " + kotlinVersion], RefKind.Platform)
}