Skip to content

Commit

Permalink
Rename Peekable::peek to poll_peek
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored and cramertj committed Oct 31, 2019
1 parent b77443b commit c433633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-util/src/stream/peek.rs
Expand Up @@ -67,7 +67,7 @@ impl<St: Stream> Peekable<St> {
///
/// 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<Option<&St::Item>> {
Expand Down

0 comments on commit c433633

Please sign in to comment.