summaryrefslogtreecommitdiff
path: root/src/sys/socket
diff options
context:
space:
mode:
authorbin liu <liubin0329@gmail.com>2022-03-09 15:59:15 +0800
committerbin liu <liubin0329@gmail.com>2022-03-09 15:59:15 +0800
commit84d89e4fc2cdfa41e83da660ee65fd61a095585e (patch)
tree36267f5464e5a211162e1761bb6d419c772fdee0 /src/sys/socket
parentff08ff7732f6410b733b781ac3dd8be8f83ec6a5 (diff)
downloadnix-84d89e4fc2cdfa41e83da660ee65fd61a095585e.zip
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>
Diffstat (limited to 'src/sys/socket')
-rw-r--r--src/sys/socket/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs
index 9c37e43b..7ed2d82d 100644
--- a/src/sys/socket/mod.rs
+++ b/src/sys/socket/mod.rs
@@ -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