update ioslice docs to use shared slices
This commit is contained in:
parent
42dcf70f99
commit
44dbd9808e
2 changed files with 8 additions and 8 deletions
|
@ -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(())
|
||||
/// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue