setted typo fix: There’s no such word as setted, set is set, set, setting (#2886)

This commit is contained in:
axiaoxin
2021-09-30 10:04:28 +08:00
committed by GitHub
parent 6d75aba83f
commit 1a2bc0e7cb
3 changed files with 18 additions and 18 deletions

View File

@ -113,7 +113,7 @@ 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.
func TestErrorUnwrap(t *testing.T) {
innerErr := TestErr("somme error")
innerErr := TestErr("some error")
// 2 layers of wrapping : use 'fmt.Errorf("%w")' to wrap a gin.Error{}, which itself wraps innerErr
err := fmt.Errorf("wrapped: %w", &Error{