Clarify std::os::unix::net::SocketAddr::is_unnamed's docstring

This commit is contained in:
Pietro Albini 2016-08-10 17:53:25 +02:00
parent e3ebe8bc02
commit 907a20c9e4
No known key found for this signature in database
GPG key ID: E8C1042DD1624519

View file

@ -110,7 +110,7 @@ impl SocketAddr {
})
}
/// Returns true if the address is unnamed.
/// Returns true if and only 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() {