From 6a1c32a0e4c536205f27a31147808e3eb1d08457 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 18 Oct 2023 18:01:10 +0200 Subject: [PATCH] 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