Merge pull request #6 from matthewleon/fix-README
fix use of errwrap.Contains in README
diff --git a/README.md b/README.md
index 1c95f59..444df08 100644
--- a/README.md
+++ b/README.md
@@ -48,7 +48,7 @@
// We can use the Contains helpers to check if an error contains
// another error. It is safe to do this with a nil error, or with
// an error that doesn't even use the errwrap package.
- if errwrap.Contains(err, ErrNotExist) {
+ if errwrap.Contains(err, "does not exist") {
// Do something
}
if errwrap.ContainsType(err, new(os.PathError)) {