]> Cypherpunks repositories - gostls13.git/commit
errors: fix package example
authorAndrew Gerrand <adg@golang.org>
Fri, 31 May 2019 10:33:01 +0000 (20:33 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 3 Jun 2019 22:09:05 +0000 (22:09 +0000)
commit5e2af2b0d2e7e367e461d4162b0338ff2dc08033
treea0e7755e420a1f2363de1fb604398c07570b7e82
parent0c75eb824ca7ca41970c2265ad1bccb82bbb408f
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>
src/errors/example_test.go
src/errors/wrap_test.go