Skip to content

Commit 84d89e4

Browse files
committed
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 <[email protected]>
1 parent ff08ff7 commit 84d89e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sys/socket/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ pub struct RecvMmsgData<'a, I>
14711471
///
14721472
/// * `iov`: Scatter-gather list of buffers to receive the message
14731473
/// * `cmsg_buffer`: Space to receive ancillary data. Should be created by
1474-
/// [`cmsg_space!`](macro.cmsg_space.html)
1474+
/// [`cmsg_space!`](../../macro.cmsg_space.html)
14751475
///
14761476
/// # Returns
14771477
/// A `Vec` with multiple `RecvMsg`, one per received message
@@ -1692,7 +1692,7 @@ fn pack_mhdr_to_send<'a, I, C>(
16921692
/// * `fd`: Socket file descriptor
16931693
/// * `iov`: Scatter-gather list of buffers to receive the message
16941694
/// * `cmsg_buffer`: Space to receive ancillary data. Should be created by
1695-
/// [`cmsg_space!`](macro.cmsg_space.html)
1695+
/// [`cmsg_space!`](../../macro.cmsg_space.html)
16961696
/// * `flags`: Optional flags passed directly to the operating system.
16971697
///
16981698
/// # References

0 commit comments

Comments
 (0)