Skip to content

Commit

Permalink
Remove extraneous space in codeblocks language
Browse files Browse the repository at this point in the history
An extra space between the code fence and the language
results in the code not being highlighted in the generated API docs.
  • Loading branch information
adam-enko authored and qodana-bot committed Sep 24, 2024
1 parent 9748df7 commit 9704f0c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions libraries/stdlib/jdk7/src/kotlin/io/path/PathUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ public fun Path.visitFileTree(visitor: FileVisitor<Path>, maxDepth: Int = Int.MA
*
* Example:
*
* ``` kotlin
* ```kotlin
* projectDirectory.visitFileTree {
* onPreVisitDirectory { directory, _ ->
* if (directory.name == "build") {
Expand Down Expand Up @@ -1152,7 +1152,7 @@ public fun Path.visitFileTree(
*
* Example:
*
* ``` kotlin
* ```kotlin
* val cleanVisitor = fileVisitor {
* onPreVisitDirectory { directory, _ ->
* if (directory.name == "build") {
Expand Down
6 changes: 3 additions & 3 deletions libraries/stdlib/js/src/kotlin/annotationsJs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internal annotation class marker
*
* Example:
*
* ``` kotlin
* ```kotlin
* class Person(val name: String) {
* fun hello() {
* println("Hello $name!")
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -114,7 +114,7 @@ public annotation class JsModule(val import: String)
*
* For example:
*
* ``` kotlin
* ```kotlin
* @JsModule("jquery")
* @JsNonModule
* @JsName("$")
Expand Down
4 changes: 2 additions & 2 deletions libraries/stdlib/js/src/kotlin/core.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<Any>
Expand All @@ -39,7 +39,7 @@ public external val definedExternally: Nothing
*
* Example:
*
* ``` kotlin
* ```kotlin
* fun logToConsole(message: String): Unit {
* js("console.log(message)")
* }
Expand Down
4 changes: 2 additions & 2 deletions libraries/stdlib/wasm/js/src/kotlin/js/annotations.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -100,4 +100,4 @@ public annotation class JsModule(val import: String)
*/
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.FILE)
public annotation class JsQualifier(val value: String)
public annotation class JsQualifier(val value: String)
6 changes: 3 additions & 3 deletions libraries/stdlib/wasm/js/src/kotlin/js/core.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<Any>
Expand All @@ -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);
Expand Down

0 comments on commit 9704f0c

Please sign in to comment.