diff --git a/_examples/gin-upgrading-overriding/v8_to_v9.go b/_examples/gin-upgrading-overriding/v8_to_v9.go index 65abe02..8c310a7 100644 --- a/_examples/gin-upgrading-overriding/v8_to_v9.go +++ b/_examples/gin-upgrading-overriding/v8_to_v9.go @@ -22,7 +22,7 @@ func (v *defaultValidator) ValidateStruct(obj interface{}) error { v.lazyinit() if err := v.validate.Struct(obj); err != nil { - return error(err) + return err } }