Skip to content

Commit 58f199e

Browse files
committed
util: lower memory allocated for sync_bridge.rs doctest
1 parent f0df0a1 commit 58f199e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio-util/src/io/sync_bridge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ use tokio::io::{
8888
/// /// and hashes the data incrementally.
8989
/// async fn hash_stream(mut reader: impl AsyncRead + Unpin, mut hasher: Hasher) -> Result<(), std::io::Error> {
9090
/// // Create a buffer to read data into, sized for performance.
91-
/// let mut data = vec![0; 64 * 1024];
91+
/// let mut data = vec![0; 16 * 1024];
9292
/// loop {
9393
/// // Read data from the reader into the buffer.
9494
/// let len = reader.read(&mut data).await?;

0 commit comments

Comments
 (0)