Skip to content

Commit c8a5ecf

Browse files
committed
update docs
1 parent acfbe19 commit c8a5ecf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/sys/socket/mod.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,9 +1497,11 @@ pub fn sendmsg<S>(fd: RawFd, iov: &[IoSlice<'_>], cmsgs: &[ControlMessage],
14971497
///
14981498
/// # Arguments
14991499
///
1500-
/// * `fd`: Socket file descriptor
1501-
/// * `data`: Struct that implements `IntoIterator` with `SendMmsgData` items
1502-
/// * `flags`: Optional flags passed directly to the operating system.
1500+
/// * `fd`: Socket file descriptor
1501+
/// * `data`: Preallocated headers - they don't hold any data
1502+
/// * `slices`: an iterator of slices to send
1503+
/// * `cmsgs_iter`: an iterator of control messages
1504+
/// * `flags`: Optional flags passed directly to the operating system.
15031505
///
15041506
/// # Returns
15051507
/// `Vec` with numbers of sent bytes on each sent message.

0 commit comments

Comments
 (0)