Skip to content

Commit 445082e

Browse files
committed
all: linkify more godoc references
Signed-off-by: Daniel Martí <[email protected]> Change-Id: Ia7fa1dfbba25a7d4a758f6ecfcd49de7e47ae733 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201363 Reviewed-by: Roger Peppe <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent f7462ee commit 445082e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cue/ast/ident.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,5 @@ func LabelName(l Label) (name string, isIdent bool, err error) {
130130
}
131131

132132
// ErrIsExpression reports whether a label is an expression.
133-
// This error is never returned directly. Use errors.Is.
133+
// This error is never returned directly. Use [errors.Is].
134134
var ErrIsExpression = errors.New("not a concrete label")

cue/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2260,7 +2260,7 @@ func (o *options) updateOptions(opts []Option) {
22602260
}
22612261

22622262
// Validate reports any errors, recursively. The returned error may represent
2263-
// more than one error, retrievable with errors.Errors, if more than one
2263+
// more than one error, retrievable with [errors.Errors], if more than one
22642264
// exists.
22652265
//
22662266
// Note that by default not all errors are reported, unless options like

mod/modcache/cache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (c *cache) writeDiskCache(ctx context.Context, file string, data []byte) er
9292

9393
// downloadDir returns the directory for storing.
9494
// An error will be returned if the module path or version cannot be escaped.
95-
// An error satisfying errors.Is(err, fs.ErrNotExist) will be returned
95+
// An error satisfying [errors.Is](err, [fs.ErrNotExist]) will be returned
9696
// along with the directory if the directory does not exist or if the directory
9797
// is not completely populated.
9898
func (c *cache) downloadDir(m module.Version) (string, error) {

mod/modregistry/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func NewClientWithResolver(resolver Resolver) *Client {
107107
}
108108

109109
// GetModule returns the module instance for the given version.
110-
// It returns an error that satisfies errors.Is(ErrNotFound) if the
110+
// It returns an error that satisfies [errors.Is]([ErrNotFound]) if the
111111
// module is not present in the store at this version.
112112
func (c *Client) GetModule(ctx context.Context, m module.Version) (*Module, error) {
113113
loc, err := c.resolve(m)

0 commit comments

Comments
 (0)