From b38955972a187c770a0fa31fd87e96bdb598a5b0 Mon Sep 17 00:00:00 2001 From: yangwenmai Date: Thu, 12 Nov 2020 12:48:57 +0800 Subject: [PATCH] internal/lsp/cache: fix InDir error comment Change-Id: I06b5cfe3053a5ebfc45e34c4b8aeeb10393ce581 Reviewed-on: https://go-review.googlesource.com/c/tools/+/269397 Reviewed-by: Rebecca Stambler Trust: Rebecca Stambler Trust: Robert Findley Run-TryBot: Rebecca Stambler gopls-CI: kokoro TryBot-Result: Go Bot --- internal/lsp/source/util.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/lsp/source/util.go b/internal/lsp/source/util.go index b3d87f9311..72b074ad01 100644 --- a/internal/lsp/source/util.go +++ b/internal/lsp/source/util.go @@ -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.