diff --git a/src/sys/unix.rs b/src/sys/unix.rs index a0b70a7b..244117b5 100644 --- a/src/sys/unix.rs +++ b/src/sys/unix.rs @@ -1876,7 +1876,7 @@ impl crate::Socket { ) ))) )] - #[deprecated = "Use `Socket::device_index_v4` instead"] + #[deprecated = "Use `Socket::bind_device_by_index_v4` instead"] pub fn bind_device_by_index(&self, interface: Option) -> io::Result<()> { self.bind_device_by_index_v4(interface) }