From 907a20c9e4ec9db4b9cebf0893bc48e0fe355a8a Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Wed, 10 Aug 2016 17:53:25 +0200 Subject: [PATCH] Clarify std::os::unix::net::SocketAddr::is_unnamed's docstring --- src/libstd/sys/unix/ext/net.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/sys/unix/ext/net.rs b/src/libstd/sys/unix/ext/net.rs index 16aed4ea551bd..a4564b9543b34 100644 --- a/src/libstd/sys/unix/ext/net.rs +++ b/src/libstd/sys/unix/ext/net.rs @@ -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() {