diff --git a/compiler/frontend/src/org/jetbrains/kotlin/parsing/CommentBinders.kt b/compiler/frontend/src/org/jetbrains/kotlin/parsing/CommentBinders.kt index 763828854b0..be3121e1585 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/parsing/CommentBinders.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/parsing/CommentBinders.kt @@ -94,7 +94,7 @@ private class AllCommentsBinder(val isTrailing: Boolean) : WhitespacesAndComment val size = tokens.size - // Skip comment if needed. Expect that there can't be several consecutive comments + // Skip one whitespace if needed. Expect that there can't be several consecutive whitespaces val endToken = tokens[if (isTrailing) size - 1 else 0] val shift = if (endToken == KtTokens.WHITE_SPACE) 1 else 0