stream: fix typo in peekable docs (#6130)

This commit is contained in:
Yotam Ofek
2023-11-05 22:51:09 +01:00
committed by GitHub
parent 61fcc3bc0b
commit 161ecec156
+1 -1
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};