Mercurial > hg-stable
changeset 51967:2d51b0cf707c
util: minor copy editing of the documentation for `mmapread()`
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 01 Oct 2024 15:04:06 -0400 |
parents | bc9ed92d4753 |
children | d94e21b5b693 |
files | mercurial/util.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Tue Oct 01 15:00:39 2024 -0400 +++ b/mercurial/util.py Tue Oct 01 15:04:06 2024 -0400 @@ -468,14 +468,14 @@ def mmapread(fp, size=None, pre_populate=True): """Read a file content using mmap - The responsability of checking the file system is mmap safe is the - responsability of the caller (see `vfs.is_mmap_safe`). + The responsibility of checking the file system is mmap safe is the + responsibility of the caller (see `vfs.is_mmap_safe`). In some case, a normal string might be returned. If `pre_populate` is True (the default), the mmapped data will be pre-populated in memory if the system support this option, this slow down - the initial mmaping but avoid potentially crippling page fault on later + the initial mmapping but avoid potentially crippling page fault on later access. If this is not the desired behavior, set `pre_populate` to False. """ if size == 0: