From: kenshi kamata Date: Wed, 22 May 2024 08:19:56 +0000 (+0900) Subject: errors: change interface{} to any in comment X-Git-Tag: go1.23rc1~141 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=85115da5d3351c4300337579eafe726700f3b587;p=gostls13.git errors: change interface{} to any in comment Change-Id: Ibf28c4b3026019427a2485230e14929ed80a1727 Reviewed-on: https://go-review.googlesource.com/c/go/+/587255 Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor Reviewed-by: Carlos Amedee --- diff --git a/src/errors/wrap.go b/src/errors/wrap.go index 57060517b5..eec9591dae 100644 --- a/src/errors/wrap.go +++ b/src/errors/wrap.go @@ -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. //