summary refs log tree commit diff
path: root/sys_util/src/poll.rs
diff options
context:
space:
mode:
Diffstat (limited to 'sys_util/src/poll.rs')
-rw-r--r--sys_util/src/poll.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys_util/src/poll.rs b/sys_util/src/poll.rs
index 1b92c96..58c5efa 100644
--- a/sys_util/src/poll.rs
+++ b/sys_util/src/poll.rs
@@ -42,7 +42,7 @@ impl Default for EpollEvents {
 
 /// Trait for a token that can be associated with an `fd` in a `PollContext`.
 ///
-/// Simple enums that have no or primitive variant data data can use the `#[derive(PollToken)]`
+/// Simple enums that have no or primitive variant data can use the `#[derive(PollToken)]`
 /// custom derive to implement this trait. See
 /// [poll_token_derive::poll_token](../poll_token_derive/fn.poll_token.html) for details.
 pub trait PollToken {
@@ -281,10 +281,10 @@ impl WatchingEvents {
     }
 }
 
-/// EpollContext wraps linux epoll. It provides similar interface to PollContext.
-/// It is thread safe while PollContext is not. It requires user to pass in a reference of
-/// EpollEvents while PollContext does not. Always use PollContext if you don't need to access the
-/// same epoll from different threads.
+/// `EpollContext` wraps linux epoll.  It provides a similar interface to `PollContext`.
+/// It is thread safe while `PollContext` is not.  It requires the user to pass in a reference of
+/// `EpollEvent`s while `PollContext` does not.  Always use `PollContext` if you don't need to
+/// access the same epoll from different threads.
 pub struct EpollContext<T> {
     epoll_ctx: File,
     // Needed to satisfy usage of T