From df010c50178019097dfed7c47a1195a2dfea7b75 Mon Sep 17 00:00:00 2001 From: aca Date: Mon, 16 Mar 2020 03:45:57 +0900 Subject: [PATCH] internal/lsp/cache: fix typo Change-Id: Ida5ed631652d9d4e35018300ab098ebb24b75856 Reviewed-on: https://go-review.googlesource.com/c/tools/+/223498 Reviewed-by: Toshihiro Shiino Reviewed-by: Rebecca Stambler Run-TryBot: Rebecca Stambler TryBot-Result: Gobot Gobot --- internal/lsp/cache/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lsp/cache/parse.go b/internal/lsp/cache/parse.go index 5c205c7734..6641d9968c 100644 --- a/internal/lsp/cache/parse.go +++ b/internal/lsp/cache/parse.go @@ -326,7 +326,7 @@ func fixSrc(f *ast.File, tok *token.File, src []byte) (newSrc []byte) { // if foo {} func fixMissingCurlies(f *ast.File, b *ast.BlockStmt, parent ast.Node, tok *token.File, src []byte) []byte { // If the "{" is already in the source code, there isn't anything to - // fix since we aren't mising curlies. + // fix since we aren't missing curlies. if b.Lbrace.IsValid() { braceOffset := tok.Offset(b.Lbrace) if braceOffset < len(src) && src[braceOffset] == '{' {