mirror of https://github.com/smol-rs/polling
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 <psychon@znc.in>
This commit is contained in:
parent
37a1d4ecd2
commit
0575cbd4bc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue