util: fix example of Buf implementor in StreamReader docs (#7167)

This commit is contained in:
Josh Triplett
2025-02-21 09:22:16 +03:30
committed by GitHub
parent a27575f284
commit 6d410f6c90
+1 -1
View File
@@ -169,7 +169,7 @@ where
/// Convert a stream of byte chunks into an [`AsyncRead`].
///
/// The item should be a [`Result`] with the ok variant being something that
/// implements the [`Buf`] trait (e.g. `Vec<u8>` or `Bytes`). The error
/// implements the [`Buf`] trait (e.g. `Cursor<Vec<u8>>` or `Bytes`). The error
/// should be convertible into an [io error].
///
/// [`Result`]: std::result::Result