linkify type names in type parameter constraints
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt
index e09d35b..14ba94b 100644
--- a/src/Kotlin/DocumentationBuilder.kt
+++ b/src/Kotlin/DocumentationBuilder.kt
@@ -494,13 +494,13 @@
for (constraint in getUpperBounds()) {
if (constraint == builtIns.getDefaultBound())
continue
- node.appendTextNode(constraint.toString(), DocumentationNode.Kind.UpperBound)
+ node.appendType(constraint, Kind.UpperBound)
}
for (constraint in getLowerBounds()) {
if (KotlinBuiltIns.isNothing(constraint))
continue
- node.appendTextNode(constraint.toString(), DocumentationNode.Kind.LowerBound)
+ node.appendType(constraint, Kind.LowerBound)
}
return node
}