diff --git a/src/EditorFeatures/CSharp/AutomaticCompletion/AutomaticLineEnderCommandHandler.cs b/src/EditorFeatures/CSharp/AutomaticCompletion/AutomaticLineEnderCommandHandler.cs index 19df5b5d0423..819ce884a7ab 100644 --- a/src/EditorFeatures/CSharp/AutomaticCompletion/AutomaticLineEnderCommandHandler.cs +++ b/src/EditorFeatures/CSharp/AutomaticCompletion/AutomaticLineEnderCommandHandler.cs @@ -601,7 +601,7 @@ private static int GetBraceInsertionPosition(SyntaxNode node) // Consider this as a SwitchExpression, add the brace after 'switch' if (switchStatementNode.OpenParenToken.IsMissing && switchStatementNode.CloseParenToken.IsMissing - && IsTokenPartOfExpresion(switchStatementNode.GetFirstToken().GetPreviousToken())) + && IsTokenPartOfExpression(switchStatementNode.GetFirstToken().GetPreviousToken())) { return switchStatementNode.SwitchKeyword.Span.End; } @@ -621,7 +621,7 @@ private static int GetBraceInsertionPosition(SyntaxNode node) }; } - private static bool IsTokenPartOfExpresion(SyntaxToken syntaxToken) + private static bool IsTokenPartOfExpression(SyntaxToken syntaxToken) { if (syntaxToken.IsMissing || syntaxToken.IsKind(SyntaxKind.None)) {