mirror of
https://github.com/golang/go
synced 2024-11-22 22:30:02 -07:00
cmd/go/internal/cache: update docs on cache accessor func
Its docs went stale in Go 1.12 when the build cache became required. Signed-off-by: Brad Fitzpatrick <bradfitz@golang.org> Change-Id: Icb7b06dc5147a858f00460e7cfe85b79b6b6f0eb Reviewed-on: https://go-review.googlesource.com/c/go/+/465555 Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
25bc96dbd2
commit
d259a50d15
3
src/cmd/go/internal/cache/default.go
vendored
3
src/cmd/go/internal/cache/default.go
vendored
@ -14,7 +14,8 @@ import (
|
||||
"cmd/go/internal/cfg"
|
||||
)
|
||||
|
||||
// Default returns the default cache to use, or nil if no cache should be used.
|
||||
// Default returns the default cache to use.
|
||||
// It never returns nil.
|
||||
func Default() *Cache {
|
||||
defaultOnce.Do(initDefaultCache)
|
||||
return defaultCache
|
||||
|
Loading…
Reference in New Issue
Block a user