From 0575cbd4bc7ff012eb3563981b576715527ae961 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 20 Oct 2023 18:49:44 +0200 Subject: [PATCH] docs: Fix wrong link in docs of Poller::wait() Once upon a time, this got a Vec as an argument, but that was replaced with the Events struct. Thus, this should link to Events and not Vec. Signed-off-by: Uli Schlachter --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index cbebaf9..9882c8e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -609,8 +609,8 @@ impl Poller { /// Waits for at least one I/O event and returns the number of new events. /// - /// New events will be appended to `events`. If necessary, make sure to clear the [`Vec`] - /// before calling [`wait()`][`Poller::wait()`]! + /// New events will be appended to `events`. If necessary, make sure to clear the + /// [`Events`][Events::clear()] before calling [`wait()`][`Poller::wait()`]! /// /// This method will return with no new events if a notification is delivered by the /// [`notify()`] method, or the timeout is reached. Sometimes it may even return with no events