File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -228,8 +228,8 @@ func (e Error) As(target interface{}) bool {
228228}
229229
230230/*
231- Unwrap the last error for compatible with the `errors.Unwrap()`
232- when you need unwrap all erros , you should use `WrappedErrors()` instead
231+ Unwrap the last error for compatibility with `errors.Unwrap()`.
232+ When you need to unwrap all errors , you should use `WrappedErrors()` instead.
233233
234234 err := Do(
235235 func() error {
@@ -240,7 +240,7 @@ when you need unwrap all erros, you should use `WrappedErrors()` instead
240240
241241 fmt.Println(errors.Unwrap(err)) # "original error" is printed
242242
243- added in version 4.2.0
243+ Added in version 4.2.0.
244244*/
245245func (e Error ) Unwrap () error {
246246 return e [len (e )- 1 ]
You can’t perform that action at this time.
0 commit comments