From cc74502f1f2ad3f6bb34ea671240e874794ee23a Mon Sep 17 00:00:00 2001 From: Alex Steele <45648397+ADSteele916@users.noreply.github.com> Date: Thu, 28 Mar 2024 01:49:13 -0700 Subject: [PATCH] Fix copy/paste error in MmapMut doc comment (#116) --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fb912e6d..0b4ea239 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -559,6 +559,8 @@ impl MmapOptions { /// /// `Mmap` is [`Sync`] and [`Send`]. /// +/// See [`MmapMut`] for the mutable version. +/// /// ## Safety /// /// All file-backed memory map constructors are marked `unsafe` because of the potential for @@ -582,8 +584,6 @@ impl MmapOptions { /// # } /// ``` /// -/// See [`MmapMut`] for the mutable version. -/// /// [`map()`]: Mmap::map() pub struct Mmap { inner: MmapInner, @@ -1036,7 +1036,7 @@ impl From for MmapRaw { /// Dereferencing and accessing the bytes of the buffer may result in page faults (e.g. swapping /// the mapped pages into physical memory) though the details of this are platform specific. /// -/// `Mmap` is [`Sync`] and [`Send`]. +/// `MmapMut` is [`Sync`] and [`Send`]. /// /// See [`Mmap`] for the immutable version. ///