Skip to content

Commit 0e92c5e

Browse files
author
Jonathan Turner
authored
Rollup merge of #35569 - pietroalbini:fix-typo, r=steveklabnik
Fix docs typo in std::os::unix::net::SocketAddr::is_unnamed
2 parents efbed8b + 907a20c commit 0e92c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/unix/ext/net.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl SocketAddr {
110110
})
111111
}
112112

113-
/// Returns true iff the address is unnamed.
113+
/// Returns true if and only if the address is unnamed.
114114
#[stable(feature = "unix_socket", since = "1.10.0")]
115115
pub fn is_unnamed(&self) -> bool {
116116
if let AddressKind::Unnamed = self.address() {

0 commit comments

Comments
 (0)