Skip to content

Commit 6d410f6

Browse files
authored
util: fix example of Buf implementor in StreamReader docs (#7167)
1 parent a27575f commit 6d410f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio-util/src/io/stream_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ where
169169
/// Convert a stream of byte chunks into an [`AsyncRead`].
170170
///
171171
/// The item should be a [`Result`] with the ok variant being something that
172-
/// implements the [`Buf`] trait (e.g. `Vec<u8>` or `Bytes`). The error
172+
/// implements the [`Buf`] trait (e.g. `Cursor<Vec<u8>>` or `Bytes`). The error
173173
/// should be convertible into an [io error].
174174
///
175175
/// [`Result`]: std::result::Result

0 commit comments

Comments
 (0)