We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ddb751 commit 74f58ffCopy full SHA for 74f58ff
README.md
@@ -242,7 +242,7 @@ notExist := try.Is(r2.err, plugin.ErrNotExist)
242
**Note.** Any other error than `plugin.ErrNotExist` is treated as an real error:
243
1. `try.Is` function first checks `if err == nil`, and if yes, it returns
244
`false`.
245
-2. Then it checks if `errors.Is` == `plugin.ErrNotExist` and if yes, it returns
+2. Then it checks if `errors.Is(err, plugin.ErrNotExist)` and if yes, it returns
246
`true`.
247
3. Finally, it calls `try.To` for the non nil error, and we already know what then
248
happens: nearest `err2.Handle` gets it first.
0 commit comments