Skip to content

Commit

Permalink
Fix copy/paste error in MmapMut doc comment (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
ADSteele916 committed Mar 28, 2024
1 parent e0a7834 commit cc74502
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -582,8 +584,6 @@ impl MmapOptions {
/// # }
/// ```
///
/// See [`MmapMut`] for the mutable version.
///
/// [`map()`]: Mmap::map()
pub struct Mmap {
inner: MmapInner,
Expand Down Expand Up @@ -1036,7 +1036,7 @@ impl From<MmapMut> 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.
///
Expand Down

0 comments on commit cc74502

Please sign in to comment.