Skip to content

Commit 29af8fc

Browse files
authored
setns: Add a doc alias (#1088)
At first I thought this wasn't bound in rustix until I went to search the source code to look at adding it. Signed-off-by: Colin Walters <walters@verbum.org>
1 parent 9e2af61 commit 29af8fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/thread/setns.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ bitflags! {
101101
/// - [Linux]
102102
///
103103
/// [Linux]: https://man7.org/linux/man-pages/man2/setns.2.html
104+
#[doc(alias = "setns")]
104105
pub fn move_into_link_name_space(
105106
fd: BorrowedFd<'_>,
106107
allowed_type: Option<LinkNameSpaceType>,
@@ -118,6 +119,7 @@ pub fn move_into_link_name_space(
118119
/// - [Linux]
119120
///
120121
/// [Linux]: https://man7.org/linux/man-pages/man2/setns.2.html
122+
#[doc(alias = "setns")]
121123
pub fn move_into_thread_name_spaces(
122124
fd: BorrowedFd<'_>,
123125
allowed_types: ThreadNameSpaceType,

0 commit comments

Comments
 (0)