From 4b8c04a3d650921cb648e5db1dd501206631a4ca Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Fri, 20 Oct 2017 14:10:15 +0300 Subject: [PATCH] Minor: fix typo --- .../src/org/jetbrains/kotlin/parsing/KotlinParsing.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/parsing/KotlinParsing.java b/compiler/frontend/src/org/jetbrains/kotlin/parsing/KotlinParsing.java index c24b276847e..9556d21e35f 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/parsing/KotlinParsing.java +++ b/compiler/frontend/src/org/jetbrains/kotlin/parsing/KotlinParsing.java @@ -1263,11 +1263,11 @@ public class KotlinParsing extends AbstractKotlinParsing { LOCAL(true, false), SCRIPT_TOPLEVEL(true, true); - public final boolean desctructuringAllowed; + public final boolean destructuringAllowed; public final boolean accessorsAllowed; - PropertyParsingMode(boolean desctructuringAllowed, boolean accessorsAllowed) { - this.desctructuringAllowed = desctructuringAllowed; + PropertyParsingMode(boolean destructuringAllowed, boolean accessorsAllowed) { + this.destructuringAllowed = destructuringAllowed; this.accessorsAllowed = accessorsAllowed; } } @@ -1295,7 +1295,7 @@ public class KotlinParsing extends AbstractKotlinParsing { if (multiDeclaration) { PsiBuilder.Marker multiDecl = mark(); parseMultiDeclarationName(propertyNameFollow); - errorIf(multiDecl, !mode.desctructuringAllowed, "Destructuring declarations are only allowed for local variables/values"); + errorIf(multiDecl, !mode.destructuringAllowed, "Destructuring declarations are only allowed for local variables/values"); } else { parseFunctionOrPropertyName(receiverTypeDeclared, "property", propertyNameFollow, /*nameRequired = */ true);