From dcf28643f0e89ef6972eda0a7272d83689e1ee65 Mon Sep 17 00:00:00 2001 From: kleuter Date: Sat, 18 May 2019 16:00:41 +0200 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }