aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/FormatService.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Formats/FormatService.kt')
-rw-r--r--src/Formats/FormatService.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Formats/FormatService.kt b/src/Formats/FormatService.kt
index 3708e9a7..b106692a 100644
--- a/src/Formats/FormatService.kt
+++ b/src/Formats/FormatService.kt
@@ -2,7 +2,8 @@ package org.jetbrains.dokka
public trait FormatService {
val extension: String
- fun format(nodes: Iterable<DocumentationNode>, to: StringBuilder)
+ fun appendNodes(to: StringBuilder,
+ nodes: Iterable<DocumentationNode>)
}
-fun FormatService.format(node: Iterable<DocumentationNode>): String = StringBuilder { format(node, this) }.toString() \ No newline at end of file
+fun FormatService.format(nodes: Iterable<DocumentationNode>): String = StringBuilder { appendNodes(this, nodes) }.toString() \ No newline at end of file