1
Fork 0

update ioslice docs to use shared slices

This commit is contained in:
Conrad Ludgate 2022-06-21 11:45:17 +02:00
parent 42dcf70f99
commit 44dbd9808e
2 changed files with 8 additions and 8 deletions

View file

@ -583,8 +583,8 @@ impl<'a> SocketAncillary<'a> {
/// let mut ancillary = SocketAncillary::new(&mut ancillary_buffer[..]);
/// ancillary.add_fds(&[sock.as_raw_fd()][..]);
///
/// let mut buf = [1; 8];
/// let mut bufs = &mut [IoSlice::new(&mut buf[..])][..];
/// let buf = [1; 8];
/// let mut bufs = &mut [IoSlice::new(&buf[..])][..];
/// sock.send_vectored_with_ancillary(bufs, &mut ancillary)?;
/// Ok(())
/// }