aboutsummaryrefslogtreecommitdiff
path: root/src/errors/errors.go
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-10-13 14:59:10 +0800
committerCherry Mui <cherryyz@google.com>2023-11-02 19:45:41 +0000
commit925a4d93dcc958ee9250bcc213baa0fc7bd892ae (patch)
tree896d184ba636c248c7abb4945cf6433182021e99 /src/errors/errors.go
parentf31a030e90d50ac7245bbae77f5598ad99411b0d (diff)
downloadgo-925a4d93dcc958ee9250bcc213baa0fc7bd892ae.tar.xz
errors: add available godoc link
Change-Id: Ie86493ebad3c3d7ea914754451985d7ee3e8e270 Reviewed-on: https://go-review.googlesource.com/c/go/+/535080 Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: shuang cui <imcusg@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Diffstat (limited to 'src/errors/errors.go')
-rw-r--r--src/errors/errors.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/errors/errors.go b/src/errors/errors.go
index 41397774d3..9e3860aaa9 100644
--- a/src/errors/errors.go
+++ b/src/errors/errors.go
@@ -26,7 +26,7 @@
// itself followed by the tree of each of its children in turn
// (pre-order, depth-first traversal).
//
-// Is examines the tree of its first argument looking for an error that
+// [Is] examines the tree of its first argument looking for an error that
// matches the second. It reports whether it finds a match. It should be
// used in preference to simple equality checks:
//
@@ -38,7 +38,7 @@
//
// because the former will succeed if err wraps [io/fs.ErrExist].
//
-// As examines the tree of its first argument looking for an error that can be
+// [As] examines the tree of its first argument looking for an error that can be
// assigned to its second argument, which must be a pointer. If it succeeds, it
// performs the assignment and returns true. Otherwise, it returns false. The form
//
@@ -80,7 +80,7 @@ func (e *errorString) Error() string {
//
// errors.Is(err, errors.ErrUnsupported)
//
-// either by directly wrapping ErrUnsupported or by implementing an Is method.
+// either by directly wrapping ErrUnsupported or by implementing an [Is] method.
//
// Functions and methods should document the cases in which an error
// wrapping this will be returned.