]> git.lizzy.rs Git - rust.git/commitdiff
Clarify std::os::unix::net::SocketAddr::is_unnamed's docstring
authorPietro Albini <pietro@pietroalbini.io>
Wed, 10 Aug 2016 15:53:25 +0000 (17:53 +0200)
committerPietro Albini <pietro@pietroalbini.io>
Wed, 10 Aug 2016 15:53:25 +0000 (17:53 +0200)
src/libstd/sys/unix/ext/net.rs

index 16aed4ea551bd30bc25b6858e05d4faee279ed78..a4564b9543b3430cdd810b87ecf5c5bf65b434c2 100644 (file)
@@ -110,7 +110,7 @@ fn from_parts(addr: libc::sockaddr_un, mut len: libc::socklen_t) -> io::Result<S
         })
     }
 
-    /// 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() {