]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/cache: update docs on cache accessor func
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 6 Feb 2023 14:07:07 +0000 (06:07 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 17 Apr 2023 13:45:35 +0000 (13:45 +0000)
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>

src/cmd/go/internal/cache/default.go

index 426dddfb978624a1843bdc6df66fdd7e96eb2ca6..f39699d5ba4e343b11c8ec0f7858811d3a312407 100644 (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