Skip to content

Commit c28af50

Browse files
committed
Link to mremap man page
1 parent bde53ca commit c28af50

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sys/mman.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,13 @@ pub unsafe fn mmap(addr: *mut c_void, length: size_t, prot: ProtFlags, flags: Ma
326326
}
327327
}
328328

329-
/// Expands (or shrinks) an existing memory mapping, potentially moving it at the same time.
329+
/// Expands (or shrinks) an existing memory mapping, potentially moving it at
330+
/// the same time.
330331
///
331332
/// # Safety
332333
///
333-
/// See the `mremap(2)` man page for detailed requirements.
334+
/// See the `mremap(2)` [man page](https://man7.org/linux/man-pages/man2/mremap.2.html) for
335+
/// detailed requirements.
334336
#[cfg(target_os = "linux")]
335337
pub unsafe fn mremap(
336338
addr: *mut c_void,

0 commit comments

Comments
 (0)