Skip to content

Commit fee5eb8

Browse files
committed
Update get docs
1 parent 4fc67a9 commit fee5eb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sys/unix.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,8 +1924,8 @@ impl crate::Socket {
19241924
}
19251925
}
19261926

1927-
/// Gets the value for `IP_BOUND_IF` option on this socket, i.e. the index
1928-
/// for the interface to which the socket is bound.
1927+
/// Gets the value for `IP_BOUND_IF` or `SO_BINDTOIFINDEX` option on this
1928+
/// socket, i.e. the index for the interface to which the socket is bound.
19291929
///
19301930
/// Returns `None` if the socket is not bound to any interface, otherwise
19311931
/// returns an interface index.
@@ -1964,8 +1964,8 @@ impl crate::Socket {
19641964
Ok(NonZeroU32::new(index))
19651965
}
19661966

1967-
/// Gets the value for `IPV6_BOUND_IF` option on this socket, i.e. the index
1968-
/// for the interface to which the socket is bound.
1967+
/// Gets the value for `IPV6_BOUND_IF` or `SO_BINDTOIFINDEX` option on this
1968+
/// socket, i.e. the index for the interface to which the socket is bound.
19691969
///
19701970
/// Returns `None` if the socket is not bound to any interface, otherwise
19711971
/// returns an interface index.

0 commit comments

Comments
 (0)