Skip to content

Commit 26f6a1b

Browse files
anthonyfokstamblerre
authored andcommitted
internal/lsp/source: fix typo: identifer → identifier
Change-Id: I37da513eb4a28df5054066b94ff1d915b9dce239 Reviewed-on: https://go-review.googlesource.com/c/tools/+/221022 Reviewed-by: Rebecca Stambler <[email protected]> Run-TryBot: Rebecca Stambler <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 0206761 commit 26f6a1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/lsp/source/completion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ func Completion(ctx context.Context, snapshot Snapshot, fh FileHandle, pos proto
495495
// Detect our surrounding identifier.
496496
switch leaf := path[0].(type) {
497497
case *ast.Ident:
498-
// In the normal case, our leaf AST node is the identifer being completed.
498+
// In the normal case, our leaf AST node is the identifier being completed.
499499
c.setSurrounding(leaf)
500500
case *ast.BadDecl:
501501
// You don't get *ast.Idents at the file level, so look for bad

internal/lsp/source/implementation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func pathEnclosingObjNode(f *ast.File, pos token.Pos) []ast.Node {
299299
}
300300
}
301301
case *ast.StarExpr:
302-
// Follow star expressions to the inner identifer.
302+
// Follow star expressions to the inner identifier.
303303
if pos == n.Star {
304304
pos = n.X.Pos()
305305
}

0 commit comments

Comments
 (0)