mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-20 00:00:08 +02:00
docs: fix typo and issue reference (#2080)
This commit is contained in:
committed by
Carl Lerche
parent
275769b5b9
commit
bd28a7a767
@@ -294,9 +294,11 @@ impl Driver {
|
||||
/// Drain all data in the global receiver, ensuring we'll get woken up when
|
||||
/// there is a write on the other end.
|
||||
///
|
||||
/// We do *NOT* use the existence of any read bytes as evidence a sigal was
|
||||
/// We do *NOT* use the existence of any read bytes as evidence a signal was
|
||||
/// received since the `pending` flags would have already been set if that
|
||||
/// was the case. See #38 for more info.
|
||||
/// was the case. See
|
||||
/// [#38](https://github.com/alexcrichton/tokio-signal/issues/38) for more
|
||||
/// info.
|
||||
fn drain(&mut self, cx: &mut Context<'_>) {
|
||||
loop {
|
||||
match Pin::new(&mut self.wakeup).poll_read(cx, &mut [0; 128]) {
|
||||
|
||||
Reference in New Issue
Block a user