From 84d89e4fc2cdfa41e83da660ee65fd61a095585e Mon Sep 17 00:00:00 2001 From: bin liu Date: Wed, 9 Mar 2022 15:59:15 +0800 Subject: [PATCH] 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 --- src/sys/socket/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index 9c37e43..7ed2d82 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