]> Cypherpunks repositories - gostls13.git/commitdiff
errors: change interface{} to any in comment
authorkenshi kamata <kenshi.kamata@gmail.com>
Wed, 22 May 2024 08:19:56 +0000 (17:19 +0900)
committerGopher Robot <gobot@golang.org>
Fri, 24 May 2024 17:13:04 +0000 (17:13 +0000)
Change-Id: Ibf28c4b3026019427a2485230e14929ed80a1727
Reviewed-on: https://go-review.googlesource.com/c/go/+/587255
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/errors/wrap.go

index 57060517b552c73c819c8e416d374a2c01908de7..eec9591dae7b933132b442422cc74b3935b79f65 100644 (file)
@@ -85,7 +85,7 @@ func is(err, target error, targetComparable bool) bool {
 // errors, As examines err followed by a depth-first traversal of its children.
 //
 // An error matches target if the error's concrete value is assignable to the value
-// pointed to by target, or if the error has a method As(interface{}) bool such that
+// pointed to by target, or if the error has a method As(any) bool such that
 // As(target) returns true. In the latter case, the As method is responsible for
 // setting target.
 //