mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +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]
|
/// #[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(())
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
|||||||
Reference in New Issue
Block a user