util: minor copy editing of the documentation for `mmapread()`
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 01 Oct 2024 15:04:06 -0400
changeset 51931 2d51b0cf707c
parent 51930 bc9ed92d4753
child 51932 d94e21b5b693
util: minor copy editing of the documentation for `mmapread()`
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: