From 85115da5d3351c4300337579eafe726700f3b587 Mon Sep 17 00:00:00 2001 From: kenshi kamata Date: Wed, 22 May 2024 17:19:56 +0900 Subject: [PATCH] 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 --- src/errors/wrap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. // -- 2.48.1