io: rename buffer to file in doc-test (#4230)

This commit is contained in:
Shin Seunghun
2021-11-13 11:31:42 +01:00
committed by GitHub
parent ccf855ec24
commit 79d7a625d0
+2 -2
View File
@@ -353,9 +353,9 @@ cfg_io_util! {
/// ///
/// #[tokio::main] /// #[tokio::main]
/// async fn main() -> io::Result<()> { /// 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(()) /// Ok(())
/// } /// }
/// ``` /// ```