]> Cypherpunks repositories - gostls13.git/commit
errors: clarify references to Unwrap in doc
authorOlivier Mengué <olivier.mengue@gmail.com>
Thu, 26 Oct 2023 20:18:33 +0000 (22:18 +0200)
committerCherry Mui <cherryyz@google.com>
Tue, 21 Nov 2023 22:04:29 +0000 (22:04 +0000)
commitef7b713fefdcfef83101eda880015dded5fadb98
tree3cfd5991720b6abda61efdef1649b63bdd7bb1e4
parent4a2408289c0a714fa57fa5921cf5dba518149637
errors: clarify references to Unwrap in doc

CL 535080 incorrectly links the unclear mention of Unwrap to the func
Unwrap in doc for errors.Is and errors.As

Instead we clarify that "Unwrap" is a reference
to the "Unwrap() error" or "Unwrap() []error" methods, not to the
"Unwrap(error) error" function which is also available in the package.

Change-Id: I8314993932e1e7a2dc77400f74d81f3a8aa891de
Reviewed-on: https://go-review.googlesource.com/c/go/+/538155
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: qiulaidongfeng <2645477756@qq.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/errors/wrap.go