diff --git a/go/internal/gccgoimporter/parser.go b/go/internal/gccgoimporter/parser.go index 2fcd7ac373..2a86734f22 100644 --- a/go/internal/gccgoimporter/parser.go +++ b/go/internal/gccgoimporter/parser.go @@ -330,7 +330,7 @@ func (p *parser) parseConstValue(pkg *types.Package) (val constant.Value, typ ty if p.tok == '$' { p.next() if p.tok != scanner.Ident { - p.errorf("expected identifer after '$', got %s (%q)", scanner.TokenString(p.tok), p.lit) + p.errorf("expected identifier after '$', got %s (%q)", scanner.TokenString(p.tok), p.lit) } } diff --git a/godoc/godoc.go b/godoc/godoc.go index 84a53a388d..810da329a8 100644 --- a/godoc/godoc.go +++ b/godoc/godoc.go @@ -288,7 +288,7 @@ func foreachLine(in []byte, fn func(line []byte)) { var commentPrefix = []byte(`// `) // linkedField determines whether the given line starts with an -// identifer in the provided ids map (mapping from identifier to the +// identifier in the provided ids map (mapping from identifier to the // same identifier). The line can start with either an identifier or // an identifier in a comment. If one matches, it returns the // identifier that matched. Otherwise it returns the empty string. diff --git a/internal/lsp/source/completion_snippet.go b/internal/lsp/source/completion_snippet.go index 74f635a5ae..031bed106f 100644 --- a/internal/lsp/source/completion_snippet.go +++ b/internal/lsp/source/completion_snippet.go @@ -55,7 +55,7 @@ func (c *completer) structFieldSnippet(label, detail string) *snippet.Builder { // functionCallSnippets calculates the snippet for function calls. func (c *completer) functionCallSnippet(name string, params []string) *snippet.Builder { // If there is no suffix then we need to reuse existing call parens - // "()" if present. If there is an identifer suffix then we always + // "()" if present. If there is an identifier suffix then we always // need to include "()" since we don't overwrite the suffix. if c.surrounding != nil && c.surrounding.Suffix() == "" && len(c.path) > 1 { // If we are the left side (i.e. "Fun") part of a call expression, diff --git a/internal/lsp/source/rename.go b/internal/lsp/source/rename.go index 1717c66c75..1b99832be6 100644 --- a/internal/lsp/source/rename.go +++ b/internal/lsp/source/rename.go @@ -168,7 +168,7 @@ func (i *IdentifierInfo) Rename(ctx context.Context, newName string) (map[span.U return result, nil } -// getPkgName gets the pkg name associated with an identifer representing +// getPkgName gets the pkg name associated with an identifier representing // the import path in an import spec. func (i *IdentifierInfo) getPkgName(ctx context.Context) (*IdentifierInfo, error) { ph, err := i.pkg.File(i.URI())