mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 17:33:07 +00:00
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:
commit
0e92c5e8b2
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user