From 9704f0c4a5867ed69db6df88707efcae07b44bf3 Mon Sep 17 00:00:00 2001 From: Adam Semenenko Date: Mon, 23 Sep 2024 19:36:02 +0200 Subject: [PATCH] Remove extraneous space in codeblocks language An extra space between the code fence and the language results in the code not being highlighted in the generated API docs. --- libraries/stdlib/jdk7/src/kotlin/io/path/PathUtils.kt | 4 ++-- libraries/stdlib/js/src/kotlin/annotationsJs.kt | 6 +++--- libraries/stdlib/js/src/kotlin/core.kt | 4 ++-- libraries/stdlib/wasm/js/src/kotlin/js/annotations.kt | 4 ++-- libraries/stdlib/wasm/js/src/kotlin/js/core.kt | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/libraries/stdlib/jdk7/src/kotlin/io/path/PathUtils.kt b/libraries/stdlib/jdk7/src/kotlin/io/path/PathUtils.kt index c8d680ae1efec..1585ca138c79e 100644 --- a/libraries/stdlib/jdk7/src/kotlin/io/path/PathUtils.kt +++ b/libraries/stdlib/jdk7/src/kotlin/io/path/PathUtils.kt @@ -1094,7 +1094,7 @@ public fun Path.visitFileTree(visitor: FileVisitor, maxDepth: Int = Int.MA * * Example: * - * ``` kotlin + * ```kotlin * projectDirectory.visitFileTree { * onPreVisitDirectory { directory, _ -> * if (directory.name == "build") { @@ -1152,7 +1152,7 @@ public fun Path.visitFileTree( * * Example: * - * ``` kotlin + * ```kotlin * val cleanVisitor = fileVisitor { * onPreVisitDirectory { directory, _ -> * if (directory.name == "build") { diff --git a/libraries/stdlib/js/src/kotlin/annotationsJs.kt b/libraries/stdlib/js/src/kotlin/annotationsJs.kt index a59595f581aaf..a11877781b278 100644 --- a/libraries/stdlib/js/src/kotlin/annotationsJs.kt +++ b/libraries/stdlib/js/src/kotlin/annotationsJs.kt @@ -40,7 +40,7 @@ internal annotation class marker * * Example: * - * ``` kotlin + * ```kotlin * class Person(val name: String) { * fun hello() { * println("Hello $name!") @@ -84,7 +84,7 @@ public actual annotation class JsFileName(actual val name: String) * * Example: * - * ``` kotlin + * ```kotlin * @JsModule("jquery") * external abstract class JQuery() { * // some declarations here @@ -114,7 +114,7 @@ public annotation class JsModule(val import: String) * * For example: * - * ``` kotlin + * ```kotlin * @JsModule("jquery") * @JsNonModule * @JsName("$") diff --git a/libraries/stdlib/js/src/kotlin/core.kt b/libraries/stdlib/js/src/kotlin/core.kt index e6067886f24ce..b8ea559af6404 100644 --- a/libraries/stdlib/js/src/kotlin/core.kt +++ b/libraries/stdlib/js/src/kotlin/core.kt @@ -24,7 +24,7 @@ package kotlin.js * * Examples: * - * ``` kotlin + * ```kotlin * external fun foo(): String = definedExternally * external fun bar(x: Int) { definedExternally } * external fun baz(z: Any = definedExternally): Array @@ -39,7 +39,7 @@ public external val definedExternally: Nothing * * Example: * - * ``` kotlin + * ```kotlin * fun logToConsole(message: String): Unit { * js("console.log(message)") * } diff --git a/libraries/stdlib/wasm/js/src/kotlin/js/annotations.kt b/libraries/stdlib/wasm/js/src/kotlin/js/annotations.kt index 32c425c7bd79a..3ff492ee7ee7d 100644 --- a/libraries/stdlib/wasm/js/src/kotlin/js/annotations.kt +++ b/libraries/stdlib/wasm/js/src/kotlin/js/annotations.kt @@ -51,7 +51,7 @@ public actual annotation class JsName(actual val name: String) * * Example: * - * ``` kotlin + * ```kotlin * @JsModule("jquery") * external abstract class JQuery() { * // some declarations here @@ -100,4 +100,4 @@ public annotation class JsModule(val import: String) */ @Retention(AnnotationRetention.BINARY) @Target(AnnotationTarget.FILE) -public annotation class JsQualifier(val value: String) \ No newline at end of file +public annotation class JsQualifier(val value: String) diff --git a/libraries/stdlib/wasm/js/src/kotlin/js/core.kt b/libraries/stdlib/wasm/js/src/kotlin/js/core.kt index 78a2a7d05afac..21d988804d31b 100644 --- a/libraries/stdlib/wasm/js/src/kotlin/js/core.kt +++ b/libraries/stdlib/wasm/js/src/kotlin/js/core.kt @@ -26,7 +26,7 @@ import kotlin.wasm.internal.ExcludedFromCodegen * * Examples: * - * ``` kotlin + * ```kotlin * external fun foo(): String = definedExternally * external fun bar(x: Int) { definedExternally } * external fun baz(z: Any = definedExternally): Array @@ -48,14 +48,14 @@ public external val definedExternally: Nothing * * When used in an expression context, [code] should contain a single JavaScript expression. For example: * - * ``` kotlin + * ```kotlin * val version: String = js("process.version") * fun newEmptyJsArray(): JsValue = js("[]") * ``` * * When used in a function body, [code] is expected to be a list of JavaScript statements. For example: * - * ``` kotlin + * ```kotlin * fun log(message1: String, message2: String) { * js(""" * console.log(message1);