# HG changeset patch # User Matt Harbison # Date 1727809446 14400 # Node ID 2d51b0cf707cc456438b2384cc943988a1301cc8 # Parent bc9ed92d475396887e0cf004c1842aff6bae3770 util: minor copy editing of the documentation for `mmapread()` diff -r bc9ed92d4753 -r 2d51b0cf707c mercurial/util.py --- 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: