Rollup merge of #35569 - pietroalbini:fix-typo, r=steveklabnik

Fix docs typo in std::os::unix::net::SocketAddr::is_unnamed
This commit is contained in:
Jonathan Turner 2016-08-11 06:34:02 -07:00 committed by GitHub
commit 0e92c5e8b2

View File

@ -110,7 +110,7 @@ impl SocketAddr {
})
}
/// Returns true iff 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() {