Skip to content

Commit b4e3420

Browse files
committed
Fix incorrect deprecation suggestion
1 parent d762efb commit b4e3420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ impl crate::Socket {
18761876
)
18771877
)))
18781878
)]
1879-
#[deprecated = "Use `Socket::device_index_v4` instead"]
1879+
#[deprecated = "Use `Socket::bind_device_by_index_v4` instead"]
18801880
pub fn bind_device_by_index(&self, interface: Option<NonZeroU32>) -> io::Result<()> {
18811881
self.bind_device_by_index_v4(interface)
18821882
}

0 commit comments

Comments
 (0)