Skip to content

Commit

Permalink
Merge pull request #144 from alexandear/fix/example-name
Browse files Browse the repository at this point in the history
Correct example names for HasType and HasInterface
  • Loading branch information
dhartunian authored Jun 3, 2024
2 parents 698c58c + cb2348e commit 5b23426
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 5b23426

Please sign in to comment.