about summary refs log tree commit diff
path: root/library/std/src/path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/path.rs')
-rw-r--r--library/std/src/path.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index 055c9514445..272ea5a3686 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -2578,7 +2578,8 @@ impl Path {
     ///
     /// # Examples
     ///
-    /// ```no_run
+    #[cfg_attr(unix, doc = "```no_run")]
+    #[cfg_attr(not(unix), doc = "```ignore")]
     /// #![feature(is_symlink)]
     /// use std::path::Path;
     /// use std::os::unix::fs::symlink;