Skip to content

Commit 9b13b9e

Browse files
committed
Make libc::if_nametoindex a link in docs
1 parent b7b29ac commit 9b13b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/unix.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ impl crate::Socket {
15761576
/// If `interface` is `None`, the binding is removed. If the `interface`
15771577
/// index is not valid, an error is returned.
15781578
///
1579-
/// One can use `libc::if_nametoindex` to convert an interface alias to an
1579+
/// One can use [`libc::if_nametoindex`] to convert an interface alias to an
15801580
/// index.
15811581
#[cfg(all(feature = "all", target_vendor = "apple"))]
15821582
#[cfg_attr(docsrs, doc(cfg(all(feature = "all", target_vendor = "apple"))))]

0 commit comments

Comments
 (0)