Skip to content

Commit

Permalink
Fix example names for HasType and HasInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed May 28, 2024
1 parent 698c58c commit cb2348e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type ExampleError struct{ msg string }

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

func ExampleIsType() {
func ExampleHasType() {
base := &ExampleError{"world"}
err := errors.Wrap(base, "hello")
fmt.Println(markers.HasType(err, (*ExampleError)(nil)))
Expand All @@ -40,7 +40,7 @@ func ExampleIsType() {
// false
}

func ExampleIsInterface() {
func ExampleHasInterface() {
base := &net.AddrError{
Addr: "ndn",
Err: "ndn doesn't really exists :(",
Expand Down

0 comments on commit cb2348e

Please sign in to comment.