diff options
| author | Shulhan <ms@kilabit.info> | 2023-09-13 22:28:06 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-09-13 23:17:40 +0700 |
| commit | 0d90bfc64fd5b4da56be002ae0a2a8d23beaeefc (patch) | |
| tree | 040646f85c6e75896529f134304d561235b059c9 /lib/errors/errors_example_test.go | |
| parent | 362e0e301c55ae41d078fce8b862d080b4d5ef06 (diff) | |
| download | pakakeh.go-0d90bfc64fd5b4da56be002ae0a2a8d23beaeefc.tar.xz | |
lib/errors: fix example name not match with known identifier
The type to be tested is E and method is Is, so example name should E_Is.
Diffstat (limited to 'lib/errors/errors_example_test.go')
| -rw-r--r-- | lib/errors/errors_example_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/errors/errors_example_test.go b/lib/errors/errors_example_test.go index 84d1de2e..a8711fb9 100644 --- a/lib/errors/errors_example_test.go +++ b/lib/errors/errors_example_test.go @@ -9,7 +9,7 @@ import ( liberrors "github.com/shuLhan/share/lib/errors" ) -func ExampleErrors_Is() { +func ExampleE_Is() { var ( errFileNotFound = &liberrors.E{ Code: 400, |
