mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/go/internal/modfetch: fix comment that mentions no-longer returned error
Inc9211577eb@bcmills removed the returned error from `Lookup`. However, the function docstring still mentions that this can return an error. So this corrects the docs. Change-Id: Idca74a200dfdb024e3d7ff6c439c70632cfec11a GitHub-Last-Rev:62eaacf70cGitHub-Pull-Request: golang/go#45822 Reviewed-on: https://go-review.googlesource.com/c/go/+/314572 Reviewed-by: Bryan C. Mills <bcmills@google.com> Reviewed-by: Michael Matloob <matloob@golang.org> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
a54762586f
commit
90614ff462
1 changed files with 2 additions and 1 deletions
|
|
@ -183,7 +183,8 @@ type lookupCacheKey struct {
|
||||||
// from its origin, and "noproxy" indicates that the patch should be fetched
|
// from its origin, and "noproxy" indicates that the patch should be fetched
|
||||||
// directly only if GONOPROXY matches the given path.
|
// directly only if GONOPROXY matches the given path.
|
||||||
//
|
//
|
||||||
// For the distinguished proxy "off", Lookup always returns a non-nil error.
|
// For the distinguished proxy "off", Lookup always returns a Repo that returns
|
||||||
|
// a non-nil error for every method call.
|
||||||
//
|
//
|
||||||
// A successful return does not guarantee that the module
|
// A successful return does not guarantee that the module
|
||||||
// has any defined versions.
|
// has any defined versions.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue