summaryrefslogtreecommitdiffstats
path: root/tokio/tests/io_read.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/tests/io_read.rs')
-rw-r--r--tokio/tests/io_read.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/tests/io_read.rs b/tokio/tests/io_read.rs
index 0a717cf5..29d7d6d7 100644
--- a/tokio/tests/io_read.rs
+++ b/tokio/tests/io_read.rs
@@ -24,7 +24,7 @@ async fn read() {
assert_eq!(0, self.poll_cnt);
self.poll_cnt += 1;
- buf.append(b"hello world");
+ buf.put_slice(b"hello world");
Poll::Ready(Ok(()))
}
}