From 9b060ac3358cbd7fd7128b3e67602f79647c1aab Mon Sep 17 00:00:00 2001 From: thinkerou Date: Fri, 9 Apr 2021 06:37:32 +0800 Subject: [PATCH] Update errors_test.go --- errors_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/errors_test.go b/errors_test.go index 73871675..ee95ab31 100644 --- a/errors_test.go +++ b/errors_test.go @@ -111,8 +111,7 @@ type TestErr string func (e TestErr) Error() string { return string(e) } // TestErrorUnwrap tests the behavior of gin.Error with "errors.Is()" and "errors.As()". -// "errors.Is()" and "errors.As()" have been added to the standard library in go 1.13, -// hence the "// +build go1.13" directive at the beginning of this file. +// "errors.Is()" and "errors.As()" have been added to the standard library in go 1.13. func TestErrorUnwrap(t *testing.T) { innerErr := TestErr("somme error")