From dde5edb18a5c302094817e83d5ecb6d0363e0c4a Mon Sep 17 00:00:00 2001 From: mandreyel Date: Sat, 29 Sep 2018 22:15:05 +0200 Subject: [PATCH] Fix erroneous comment in example code --- README.md | 6 +++--- test/example.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fb0dc7b..3cc34e0 100644 --- a/README.md +++ b/README.md @@ -85,9 +85,9 @@ int main() const auto path = "file.txt"; // NOTE: mio does *not* create the file for you if it doesn't exist! You - // must ensure that the file exist before establishing a mapping. It must - // also be at least 43 bytes long for the below indexing to work. So for - // illustrative purposes the file is created now. + // must ensure that the file exists before establishing a mapping. It + // must also be non-empty. So for illustrative purposes the file is + // created now. allocate_file(path, 155); // Read-write memory map the whole file by using `map_entire_file` where the diff --git a/test/example.cpp b/test/example.cpp index 403a5bd..efeb67a 100644 --- a/test/example.cpp +++ b/test/example.cpp @@ -24,9 +24,9 @@ int main() const auto path = "file.txt"; // NOTE: mio does *not* create the file for you if it doesn't exist! You - // must ensure that the file exist before establishing a mapping. It must - // also be at least 43 bytes long for the below indexing to work. So for - // illustrative purposes the file is created now. + // must ensure that the file exists before establishing a mapping. It + // must also be non-empty. So for illustrative purposes the file is + // created now. allocate_file(path, 155); // Read-write memory map the whole file by using `map_entire_file` where the