diff --git a/README.md b/README.md index 92585aa..2a13de8 100644 --- a/README.md +++ b/README.md @@ -266,7 +266,7 @@ namespace fs = ghc::filesystem; int main(int argc, char* argv[]) { fs::u8arguments u8guard(argc, argv); - if(u8guard.valid()) { + if(!u8guard.valid()) { std::cerr << "Bad encoding, needs UTF-8." << std::endl; exit(EXIT_FAILURE); }