summaryrefslogtreecommitdiffstats
path: root/library/std/src/os/fd/raw.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/os/fd/raw.rs')
-rw-r--r--library/std/src/os/fd/raw.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/std/src/os/fd/raw.rs b/library/std/src/os/fd/raw.rs
index 592e072ad..ef896ea95 100644
--- a/library/std/src/os/fd/raw.rs
+++ b/library/std/src/os/fd/raw.rs
@@ -84,7 +84,10 @@ pub trait FromRawFd {
///
/// # Safety
///
- /// The `fd` passed in must be a valid and open file descriptor.
+ /// The `fd` passed in must be an [owned file descriptor][io-safety];
+ /// in particular, it must be open.
+ ///
+ /// [io-safety]: io#io-safety
///
/// # Example
///