From 27f5d1b10425f1eb3612259ae729ef73490e364f Mon Sep 17 00:00:00 2001 From: Daisuke Suzuki Date: Wed, 1 Jan 2020 21:14:58 +0900 Subject: [PATCH] internal/lsp/cmd: fix documentation Change-Id: I60d6337b07b2cad4d20d877d61b11ebe33d26cf6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/212582 Reviewed-by: Rebecca Stambler Run-TryBot: Rebecca Stambler --- internal/lsp/cmd/cmd.go | 2 +- internal/lsp/cmd/symbols.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/lsp/cmd/cmd.go b/internal/lsp/cmd/cmd.go index e1346e3e2e7..f36311bc4c6 100644 --- a/internal/lsp/cmd/cmd.go +++ b/internal/lsp/cmd/cmd.go @@ -71,7 +71,7 @@ type Application struct { PrepareOptions func(*source.Options) } -// Returns a new Application ready to run. +// New returns a new Application ready to run. func New(name, wd string, env []string, options func(*source.Options)) *Application { if wd == "" { wd, _ = os.Getwd() diff --git a/internal/lsp/cmd/symbols.go b/internal/lsp/cmd/symbols.go index 41987721603..41cc0f75136 100644 --- a/internal/lsp/cmd/symbols.go +++ b/internal/lsp/cmd/symbols.go @@ -15,7 +15,7 @@ import ( "golang.org/x/tools/internal/tool" ) -// references implements the references verb for gopls +// symbols implements the symbols verb for gopls type symbols struct { app *Application }