go/src/errors
Andrew Gerrand 5e2af2b0d2 errors: fix package example
The example in example_test.go requires that the whole file be
displayed; the addition of ExampleAs meant that only the body of the
package example function was shown, rather than the surrounding context.

This change moves ExampleAs to the file wrap_test.go file, restoring the
package example to its former glory.

Update #31716

Change-Id: Id0ea77bc06023b239a63c1d6a7c8b3c1dae91ce9
Reviewed-on: https://go-review.googlesource.com/c/go/+/179737
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
Reviewed-by: Jean de Klerk <deklerk@google.com>
Run-TryBot: Benny Siegert <bsiegert@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-06-03 22:09:05 +00:00
..
errors.go errors, fmt: revert rejected changes for Go 1.13 2019-05-15 19:53:15 +00:00
errors_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
example_test.go errors: fix package example 2019-06-03 22:09:05 +00:00
wrap.go errors: remove mention of Wrapper interface 2019-05-22 02:10:36 +00:00
wrap_test.go errors: fix package example 2019-06-03 22:09:05 +00:00