diff --git a/include/mio/mmap.hpp b/include/mio/mmap.hpp index b96552a..183bbfa 100644 --- a/include/mio/mmap.hpp +++ b/include/mio/mmap.hpp @@ -115,9 +115,9 @@ public: bool is_open() const noexcept { return impl_.is_open(); } /** - * Returns if the length that was mapped was 0, in which case no mapping was - * established, i.e. `is_open` returns false. This function is provided so that - * this class has some Container semantics. + * Returns true if no mapping was established, that is, conceptually the + * same as though the length that was mapped was 0. This function is + * provided so that this class has Container semantics. */ bool empty() const noexcept { return impl_.empty(); } diff --git a/include/mio/shared_mmap.hpp b/include/mio/shared_mmap.hpp index 0d5ecda..1aae4eb 100644 --- a/include/mio/shared_mmap.hpp +++ b/include/mio/shared_mmap.hpp @@ -128,9 +128,9 @@ public: bool is_open() const noexcept { return pimpl_ && pimpl_->is_open(); } /** - * Returns if the length that was mapped was 0, in which case no mapping was - * established, i.e. `is_open` returns false. This function is provided so that - * this class has some Container semantics. + * Returns true if no mapping was established, that is, conceptually the + * same as though the length that was mapped was 0. This function is + * provided so that this class has Container semantics. */ bool empty() const noexcept { return !pimpl_ || pimpl_->empty(); }