From 6d410f6c900e6e3bf0e22eba2de7a7da5469ed24 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Fri, 21 Feb 2025 06:52:16 +0100 Subject: [PATCH] util: fix example of `Buf` implementor in `StreamReader` docs (#7167) --- tokio-util/src/io/stream_reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-util/src/io/stream_reader.rs b/tokio-util/src/io/stream_reader.rs index 7569a8b78..849538a50 100644 --- a/tokio-util/src/io/stream_reader.rs +++ b/tokio-util/src/io/stream_reader.rs @@ -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` or `Bytes`). The error + /// implements the [`Buf`] trait (e.g. `Cursor>` or `Bytes`). The error /// should be convertible into an [io error]. /// /// [`Result`]: std::result::Result