Skip to content

Commit

Permalink
all: linkify more godoc references
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mvdan committed Sep 17, 2024
1 parent f7462ee commit 445082e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cue/ast/ident.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,5 @@ func LabelName(l Label) (name string, isIdent bool, err error) {
}

// ErrIsExpression reports whether a label is an expression.
// This error is never returned directly. Use errors.Is.
// This error is never returned directly. Use [errors.Is].
var ErrIsExpression = errors.New("not a concrete label")
2 changes: 1 addition & 1 deletion cue/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2260,7 +2260,7 @@ func (o *options) updateOptions(opts []Option) {
}

// Validate reports any errors, recursively. The returned error may represent
// more than one error, retrievable with errors.Errors, if more than one
// more than one error, retrievable with [errors.Errors], if more than one
// exists.
//
// Note that by default not all errors are reported, unless options like
Expand Down
2 changes: 1 addition & 1 deletion mod/modcache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (c *cache) writeDiskCache(ctx context.Context, file string, data []byte) er

// downloadDir returns the directory for storing.
// An error will be returned if the module path or version cannot be escaped.
// An error satisfying errors.Is(err, fs.ErrNotExist) will be returned
// An error satisfying [errors.Is](err, [fs.ErrNotExist]) will be returned
// along with the directory if the directory does not exist or if the directory
// is not completely populated.
func (c *cache) downloadDir(m module.Version) (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion mod/modregistry/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func NewClientWithResolver(resolver Resolver) *Client {
}

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

0 comments on commit 445082e

Please sign in to comment.