Skip to content

Commit 5b23426

Browse files
authored
Merge pull request #144 from alexandear/fix/example-name
Correct example names for HasType and HasInterface
2 parents 698c58c + cb2348e commit 5b23426

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

markers/example_is_type_test.go markers/example_has_type_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type ExampleError struct{ msg string }
2626

2727
func (e *ExampleError) Error() string { return e.msg }
2828

29-
func ExampleIsType() {
29+
func ExampleHasType() {
3030
base := &ExampleError{"world"}
3131
err := errors.Wrap(base, "hello")
3232
fmt.Println(markers.HasType(err, (*ExampleError)(nil)))
@@ -40,7 +40,7 @@ func ExampleIsType() {
4040
// false
4141
}
4242

43-
func ExampleIsInterface() {
43+
func ExampleHasInterface() {
4444
base := &net.AddrError{
4545
Addr: "ndn",
4646
Err: "ndn doesn't really exists :(",

0 commit comments

Comments
 (0)