We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sync_bridge.rs
1 parent f0df0a1 commit 58f199eCopy full SHA for 58f199e
tokio-util/src/io/sync_bridge.rs
@@ -88,7 +88,7 @@ use tokio::io::{
88
/// /// and hashes the data incrementally.
89
/// async fn hash_stream(mut reader: impl AsyncRead + Unpin, mut hasher: Hasher) -> Result<(), std::io::Error> {
90
/// // Create a buffer to read data into, sized for performance.
91
-/// let mut data = vec![0; 64 * 1024];
+/// let mut data = vec![0; 16 * 1024];
92
/// loop {
93
/// // Read data from the reader into the buffer.
94
/// let len = reader.read(&mut data).await?;
0 commit comments