From 79d7a625d06512e85a89e667288e403607fe466f Mon Sep 17 00:00:00 2001 From: Shin Seunghun <36041278+seunghunee@users.noreply.github.com> Date: Sat, 13 Nov 2021 19:31:42 +0900 Subject: [PATCH] io: rename buffer to file in doc-test (#4230) --- tokio/src/io/util/async_write_ext.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio/src/io/util/async_write_ext.rs b/tokio/src/io/util/async_write_ext.rs index 2926fe4d2..93a318315 100644 --- a/tokio/src/io/util/async_write_ext.rs +++ b/tokio/src/io/util/async_write_ext.rs @@ -353,9 +353,9 @@ cfg_io_util! { /// /// #[tokio::main] /// async fn main() -> io::Result<()> { - /// let mut buffer = File::create("foo.txt").await?; + /// let mut file = File::create("foo.txt").await?; /// - /// buffer.write_all(b"some bytes").await?; + /// file.write_all(b"some bytes").await?; /// Ok(()) /// } /// ```