From bc63db7b57f061fe32fab235e83a185ea9c348e3 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Thu, 6 Jul 2023 14:02:07 +0200 Subject: [PATCH] vhost-user-backend: fix docs for exit_event The function used to return a tuple, but no longer does that. Fixes: e8beb23 ("epoll: refine the way to manage event id") Signed-off-by: Erik Schilling --- crates/vhost-user-backend/src/backend.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/vhost-user-backend/src/backend.rs b/crates/vhost-user-backend/src/backend.rs index 3610f4d..5f2d8ff 100644 --- a/crates/vhost-user-backend/src/backend.rs +++ b/crates/vhost-user-backend/src/backend.rs @@ -93,9 +93,8 @@ where /// Provide an optional exit EventFd for the specified worker thread. /// - /// If an (`EventFd`, `token`) pair is returned, the returned `EventFd` will be monitored for IO - /// events by using epoll with the specified `token`. When the returned EventFd is written to, - /// the worker thread will exit. + /// The returned `EventFd` will be monitored for IO events. When the + /// returned EventFd is written to, the worker thread will exit. fn exit_event(&self, _thread_index: usize) -> Option { None }