From 6570541b259d7d0650a43d40d58fbd4b656a00e0 Mon Sep 17 00:00:00 2001 From: mandreyel Date: Mon, 22 Oct 2018 15:24:30 +0200 Subject: [PATCH] Update README.md and example.cpp --- README.md | 4 ++-- test/example.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c3287a0..f3e24b1 100644 --- a/README.md +++ b/README.md @@ -113,8 +113,8 @@ int main() const int answer_index = rw_mmap.size() / 2; rw_mmap[answer_index] = 42; - // Don't forget to flush changes to disk, which is NOT done by the destructor for - // more explicit control of this potentially expensive operation. + // We can explicitly flush changes to disk, but this is already done by the + // destructor. rw_mmap.sync(error); if (error) { return handle_error(error); } diff --git a/test/example.cpp b/test/example.cpp index efeb67a..68ef750 100644 --- a/test/example.cpp +++ b/test/example.cpp @@ -49,8 +49,8 @@ int main() const int answer_index = rw_mmap.size() / 2; rw_mmap[answer_index] = 42; - // Don't forget to flush changes to disk, which is NOT done by the destructor for - // more explicit control of this potentially expensive operation. + // We can explicitly flush changes to disk, but this is already done by the + // destructor. rw_mmap.sync(error); if (error) { return handle_error(error); }