diff --git a/futures-util/src/stream/peek.rs b/futures-util/src/stream/peek.rs index ef9a219cd0..2d0b23cdde 100644 --- a/futures-util/src/stream/peek.rs +++ b/futures-util/src/stream/peek.rs @@ -67,7 +67,7 @@ impl Peekable { /// /// This method polls the underlying stream and return either a reference /// to the next item if the stream is ready or passes through any errors. - pub fn peek( + pub fn poll_peek( mut self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll> {