File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ cfg_io_util! {
117
117
///
118
118
/// // Writes some prefix of the byte string, not necessarily all of it.
119
119
/// file.write(b"some bytes").await?;
120
+ /// file.flush().await?;
120
121
/// Ok(())
121
122
/// }
122
123
/// ```
@@ -162,6 +163,7 @@ cfg_io_util! {
162
163
/// ];
163
164
///
164
165
/// file.write_vectored(&bufs).await?;
166
+ /// file.flush().await?;
165
167
///
166
168
/// Ok(())
167
169
/// }
@@ -244,6 +246,7 @@ cfg_io_util! {
244
246
/// // all of it.
245
247
/// file.write_buf(&mut buffer).await?;
246
248
/// }
249
+ /// file.flush().await?;
247
250
///
248
251
/// Ok(())
249
252
/// }
@@ -307,6 +310,7 @@ cfg_io_util! {
307
310
/// let mut buffer = Cursor::new(b"data to write");
308
311
///
309
312
/// file.write_all_buf(&mut buffer).await?;
313
+ /// file.flush().await?;
310
314
/// Ok(())
311
315
/// }
312
316
/// ```
@@ -356,6 +360,7 @@ cfg_io_util! {
356
360
/// let mut file = File::create("foo.txt").await?;
357
361
///
358
362
/// file.write_all(b"some bytes").await?;
363
+ /// file.flush().await?;
359
364
/// Ok(())
360
365
/// }
361
366
/// ```
You can’t perform that action at this time.
0 commit comments