internal/lsp/cache: fix InDir error comment

Change-Id: I06b5cfe3053a5ebfc45e34c4b8aeeb10393ce581
Reviewed-on: https://go-review.googlesource.com/c/tools/+/269397
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Trust: Rebecca Stambler <rstambler@golang.org>
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
yangwenmai 2020-11-12 12:48:57 +08:00 committed by Rebecca Stambler
parent 41a3a58938
commit b38955972a
1 changed files with 0 additions and 2 deletions

View File

@ -443,8 +443,6 @@ func isDirective(c string) bool {
}
// InDir checks whether path is in the file tree rooted at dir.
// If so, InDir returns an equivalent path relative to dir.
// If not, InDir returns an empty string.
// InDir makes some effort to succeed even in the presence of symbolic links.
//
// Copied and slightly adjusted from go/src/cmd/go/internal/search/search.go.