go/src/errors
Jonathan Amsterdam b7ff8ffa05 [release-branch.go1.13] errors: fix wrong code in package doc
You can't call Unwrap on the return value of fmt.Errorf, but
you can pass the result to errors.Unwrap.

Also, move the description of the Unwrap function up so the
example makes sense.

Fixes #34082.

Change-Id: Ica07c44665c5e65deea4aa6a146fc543a5a0a99d
Reviewed-on: https://go-review.googlesource.com/c/go/+/193298
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Katie Hockman <katie@golang.org>
(cherry picked from commit d9a3d902ec)
Reviewed-on: https://go-review.googlesource.com/c/go/+/193263
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-09-04 17:54:31 +00:00
..
errors.go [release-branch.go1.13] errors: fix wrong code in package doc 2019-09-04 17:54:31 +00:00
errors_test.go
example_test.go errors: fix package example 2019-06-03 22:09:05 +00:00
wrap.go errors: improve doc 2019-08-06 11:13:05 +00:00
wrap_test.go errors: improve As tests 2019-06-11 17:48:48 +00:00