@@ -1388,19 +1388,21 @@ pub trait Write {
1388
1388
///
1389
1389
/// If the buffer contains no data, this will never call [`write_vectored`].
1390
1390
///
1391
+ /// [`write_vectored`]: #tymethod.write_vectored
1392
+ /// [`ErrorKind::Interrupted`]: ../../std/io/enum.ErrorKind.html#variant.Interrupted
1393
+ ///
1391
1394
/// # Notes
1392
1395
///
1393
1396
/// Different to `io::Write::write_vectored` this takes a *mutable*
1394
1397
/// reference to a slice of `IoSlice`s, not a non-mutable reference, because
1395
1398
/// we need to modify the slice to keep track of the bytes already written.
1396
1399
///
1397
- /// Once this function returns the contents of `bufs` is undefined, not
1398
- /// undefined as in memory unsafe but we don't know what the contents of
1399
- /// `bufs` will be as that depends on how many writes we needed to do. We
1400
- /// advice to see this function as taking ownership of `bufs` and don't use
1401
- /// the variable after the future returns. The underlying buffers, to which
1402
- /// `IoSlice` points (not the `IoSlice` itself), are unchanged and can be
1403
- /// reused.
1400
+ /// Once this function returns the contents of `bufs` is unspecified, as we
1401
+ /// don't know what the contents of `bufs` will be as that depends on how
1402
+ /// many writes we needed to do. We advice to see this function as taking
1403
+ /// ownership of `bufs` and don't use the variable after the future returns.
1404
+ /// The underlying buffers, to which `IoSlice` points (not the `IoSlice`
1405
+ /// itself), are unchanged and can be reused.
1404
1406
///
1405
1407
/// # Examples
1406
1408
///
0 commit comments