]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/os/fd/owned.rs
Rollup merge of #98368 - sunfishcode:sunfishcode/std-os-fd, r=joshtriplett
[rust.git] / library / std / src / os / fd / owned.rs
index 71e33fb9ed86442b0797a3ce52ebf8c794007615..9875c389d8aaf7273b7f0812f3f9217cc0ea13df 100644 (file)
@@ -206,10 +206,8 @@ pub trait AsFd {
     /// ```rust,no_run
     /// use std::fs::File;
     /// # use std::io;
-    /// # #[cfg(target_os = "wasi")]
-    /// # use std::os::wasi::io::{AsFd, BorrowedFd};
-    /// # #[cfg(unix)]
-    /// # use std::os::unix::io::{AsFd, BorrowedFd};
+    /// # #[cfg(any(unix, target_os = "wasi"))]
+    /// # use std::os::fd::{AsFd, BorrowedFd};
     ///
     /// let mut f = File::open("foo.txt")?;
     /// # #[cfg(any(unix, target_os = "wasi"))]