From 577a6fec336010cb56a547bf2d6304fd3e0cb257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20Sala=C3=BCn?= <1910607+yansal@users.noreply.github.com> Date: Mon, 9 Mar 2020 17:32:02 +0100 Subject: [PATCH] errors: fix typo in As documentation --- 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 272d056b31..b82ca34b46 100644 --- a/src/errors/wrap.go +++ b/src/errors/wrap.go @@ -70,7 +70,7 @@ func Is(err, target error) bool { // setting target. // // An error type might provide an As method so it can be treated as if it were a -// a different error type. +// different error type. // // As panics if target is not a non-nil pointer to either a type that implements // error, or to any interface type.