aboutsummaryrefslogtreecommitdiff
path: root/src/Markdown/MarkdownProcessor.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-10-21 18:26:10 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-10-21 18:26:10 +0200
commitb8f2435e2db50c2053a9d880ab9573cb0bc2630e (patch)
tree55274c5b5e67191e32983559ffb8ea15c0c4df86 /src/Markdown/MarkdownProcessor.kt
parent8827d30048b9c50f47e62f69baf774363fdebc5d (diff)
downloaddokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.tar.gz
dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.tar.bz2
dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.zip
M15 code cleanup
Diffstat (limited to 'src/Markdown/MarkdownProcessor.kt')
-rw-r--r--src/Markdown/MarkdownProcessor.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Markdown/MarkdownProcessor.kt b/src/Markdown/MarkdownProcessor.kt
index 62395bc1..99caddc4 100644
--- a/src/Markdown/MarkdownProcessor.kt
+++ b/src/Markdown/MarkdownProcessor.kt
@@ -13,7 +13,7 @@ class MarkdownNode(val node: ASTNode, val parent: MarkdownNode?, val markdown: S
val text: String get() = markdown.substring(node.startOffset, node.endOffset)
fun child(type: IElementType): MarkdownNode? = children.firstOrNull { it.type == type }
- override fun toString(): String = StringBuilder { presentTo(this) }.toString()
+ override fun toString(): String = StringBuilder().apply { presentTo(this) }.toString()
}
fun MarkdownNode.visit(action: (MarkdownNode, () -> Unit) -> Unit) {