From c7794056865401686e37636ba6453532a0923843 Mon Sep 17 00:00:00 2001 From: LinkTed Date: Tue, 3 Nov 2020 18:28:04 +0100 Subject: [PATCH] Fix docs for MacOs (correction) --- library/std/src/sys/unix/ext/net/stream.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/std/src/sys/unix/ext/net/stream.rs b/library/std/src/sys/unix/ext/net/stream.rs index 4b3221f1022..9fe6b85837e 100644 --- a/library/std/src/sys/unix/ext/net/stream.rs +++ b/library/std/src/sys/unix/ext/net/stream.rs @@ -364,7 +364,8 @@ impl UnixStream { /// /// # Examples /// - /// ```no_run + #[cfg_attr(any(target_os = "android", target_os = "linux"), doc = "```no_run")] + #[cfg_attr(not(any(target_os = "android", target_os = "linux")), doc = "```ignore")] /// #![feature(unix_socket_ancillary_data)] /// use std::os::unix::net::UnixStream; ///