1
0
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:
Brad Fitzpatrick 2023-02-06 06:07:07 -08:00 committed by Gopher Robot
parent 25bc96dbd2
commit d259a50d15

View File

@ -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