mirror of
https://github.com/golang/go
synced 2024-11-18 15:04:44 -07:00
internal/lsp/cache: fix typo
Change-Id: Ida5ed631652d9d4e35018300ab098ebb24b75856 Reviewed-on: https://go-review.googlesource.com/c/tools/+/223498 Reviewed-by: Toshihiro Shiino <shiino.toshihiro@gmail.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
4303120df7
commit
df010c5017
2
internal/lsp/cache/parse.go
vendored
2
internal/lsp/cache/parse.go
vendored
@ -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] == '{' {
|
||||
|
Loading…
Reference in New Issue
Block a user