Skip to content

Commit

Permalink
remove unnecessary unsafe block
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Dec 11, 2022
1 parent 5ed1e76 commit 511f84b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/epoll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl EpollEvent {
/// let epoll = Epoll::new(EpollCreateFlags::empty())?;
///
/// // Create eventfd & Add event
/// let eventfd = unsafe { eventfd(0, EfdFlags::empty())? };
/// let eventfd = eventfd(0, EfdFlags::empty())?;
/// epoll.add(&eventfd, EpollEvent::new(EpollFlags::EPOLLIN,DATA))?;
///
/// // Arm eventfd & Time wait
Expand Down

0 comments on commit 511f84b

Please sign in to comment.