mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-17 00:00:11 +02:00
io: rename buffer to file in doc-test (#4230)
This commit is contained in:
@@ -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(())
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user