diff --git a/library/std/src/os/unix/io/fd.rs b/library/std/src/os/unix/io/fd.rs index 5bf6369122b97c7f4840bc26979aad2fd5d4417d..5a8b30c77c02eb9e363fa0fb2665320cf801473a 100644 --- a/library/std/src/os/unix/io/fd.rs +++ b/library/std/src/os/unix/io/fd.rs @@ -99,7 +99,7 @@ impl FromRawFd for OwnedFd { /// # Safety /// /// The resource pointed to by `raw` must be open and suitable for assuming - /// ownership. + /// ownership. The resource must not require any cleanup other than `close`. #[inline] unsafe fn from_raw_fd(raw: RawFd) -> Self { assert_ne!(raw, -1i32);