Fix docs typo in std::os::unix::net::SocketAddr::is_unnamed

This commit is contained in:
Pietro Albini 2016-08-10 17:34:50 +02:00
parent ae77410350
commit e3ebe8bc02
No known key found for this signature in database
GPG Key ID: E8C1042DD1624519

View File

@ -110,7 +110,7 @@ impl SocketAddr {
})
}
/// Returns true iff the address is unnamed.
/// Returns true if the address is unnamed.
#[stable(feature = "unix_socket", since = "1.10.0")]
pub fn is_unnamed(&self) -> bool {
if let AddressKind::Unnamed = self.address() {