1
0
mirror of https://github.com/golang/go synced 2024-09-30 22:58:34 -06:00

internal/lsp/source: fix typo: identifer → identifier

Change-Id: I37da513eb4a28df5054066b94ff1d915b9dce239
Reviewed-on: https://go-review.googlesource.com/c/tools/+/221022
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:
Anthony Fok 2020-02-26 10:16:36 -07:00 committed by Rebecca Stambler
parent 020676185e
commit 26f6a1b680
2 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ func Completion(ctx context.Context, snapshot Snapshot, fh FileHandle, pos proto
// Detect our surrounding identifier.
switch leaf := path[0].(type) {
case *ast.Ident:
// In the normal case, our leaf AST node is the identifer being completed.
// In the normal case, our leaf AST node is the identifier being completed.
c.setSurrounding(leaf)
case *ast.BadDecl:
// You don't get *ast.Idents at the file level, so look for bad

View File

@ -299,7 +299,7 @@ func pathEnclosingObjNode(f *ast.File, pos token.Pos) []ast.Node {
}
}
case *ast.StarExpr:
// Follow star expressions to the inner identifer.
// Follow star expressions to the inner identifier.
if pos == n.Star {
pos = n.X.Pos()
}