Skip to content

Commit 1a249d6

Browse files
committed
fix safety section
1 parent 2e4da66 commit 1a249d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sys/eventfd.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ impl EventFd {
6060

6161
/// Constructs an `EventFd` wrapping an existing `OwnedFd`.
6262
///
63-
/// Safety: `OwnedFd` is a valid eventfd.
63+
/// # Safety
64+
///
65+
/// `OwnedFd` is a valid eventfd.
6466
pub unsafe fn from_owned_fd(fd: OwnedFd) -> Self {
6567
Self(fd)
6668
}

0 commit comments

Comments
 (0)