--- 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: