Skip to content

Commit 7356d37

Browse files
authored
Fix invalid comment sequence (#335)
1 parent 84eab74 commit 7356d37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kt/api-generator/src/main/kotlin/godot/docgen/rawXmlPojos.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private fun String.getFormattedDescription(): String = trim()
146146
/**
147147
* Replaces wrong comment characters sequence to avoid invalid comment syntax.
148148
*/
149-
fun String.replaceInvalidCommentSequences(): String = this.replace("*/", "* / ")
149+
fun String.replaceInvalidCommentSequences(): String = this.replace("*/", "* / ").replace("/*", "/ *")
150150

151151
/**
152152
* Replaces new line chars with two new line chars so they are rendered on an new line in kdoc

0 commit comments

Comments
 (0)