stream: fix typo in peekable docs (#6130)

This commit is contained in:
Yotam Ofek 2023-11-05 23:51:09 +02:00 committed by GitHub
parent 61fcc3bc0b
commit 161ecec156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1180,7 +1180,7 @@ pub trait StreamExt: Stream {
ChunksTimeout::new(self, max_size, duration)
}
/// Turns the stream into a peekable stream, whose first element can be peeked at without being
/// Turns the stream into a peekable stream, whose next element can be peeked at without being
/// consumed.
/// ```rust
/// use tokio_stream::{self as stream, StreamExt};