docs: fix link in doc for cmsg_space in sys/socket

Link to cmsg_space macro for recvmmsg and recvmsg should
be the doc's root of crate as macro is an exported macro.

Signed-off-by: bin liu <liubin0329@gmail.com>
This commit is contained in:
bin liu 2022-03-09 15:59:15 +08:00
parent ff08ff7732
commit 84d89e4fc2

View File

@ -1471,7 +1471,7 @@ pub struct RecvMmsgData<'a, I>
///
/// * `iov`: Scatter-gather list of buffers to receive the message
/// * `cmsg_buffer`: Space to receive ancillary data. Should be created by
/// [`cmsg_space!`](macro.cmsg_space.html)
/// [`cmsg_space!`](../../macro.cmsg_space.html)
///
/// # Returns
/// A `Vec` with multiple `RecvMsg`, one per received message
@ -1692,7 +1692,7 @@ fn pack_mhdr_to_send<'a, I, C>(
/// * `fd`: Socket file descriptor
/// * `iov`: Scatter-gather list of buffers to receive the message
/// * `cmsg_buffer`: Space to receive ancillary data. Should be created by
/// [`cmsg_space!`](macro.cmsg_space.html)
/// [`cmsg_space!`](../../macro.cmsg_space.html)
/// * `flags`: Optional flags passed directly to the operating system.
///
/// # References