We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 698c58c + cb2348e commit 5b23426Copy full SHA for 5b23426
markers/example_is_type_test.go markers/example_has_type_test.go
@@ -26,7 +26,7 @@ type ExampleError struct{ msg string }
26
27
func (e *ExampleError) Error() string { return e.msg }
28
29
-func ExampleIsType() {
+func ExampleHasType() {
30
base := &ExampleError{"world"}
31
err := errors.Wrap(base, "hello")
32
fmt.Println(markers.HasType(err, (*ExampleError)(nil)))
@@ -40,7 +40,7 @@ func ExampleIsType() {
40
// false
41
}
42
43
-func ExampleIsInterface() {
+func ExampleHasInterface() {
44
base := &net.AddrError{
45
Addr: "ndn",
46
Err: "ndn doesn't really exists :(",
0 commit comments