about summary refs log tree commit diff
path: root/library/std/src/os
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2021-07-21 10:06:26 -0700
committerDan Gohman <dev@sunfishcode.online>2021-08-19 12:02:39 -0700
commit3a38511ab338cdfe5dbec2382b819f4834eeef1d (patch)
tree6c57ec8d4d9ef972460bf42f2fd11b46414235ad /library/std/src/os
parentd15418586ca78ead4f87ad18fcffa3550c1b169e (diff)
downloadrust-3a38511ab338cdfe5dbec2382b819f4834eeef1d.tar.gz
rust-3a38511ab338cdfe5dbec2382b819f4834eeef1d.zip
Update library/std/src/os/unix/io/fd.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'library/std/src/os')
-rw-r--r--library/std/src/os/unix/io/fd.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/os/unix/io/fd.rs b/library/std/src/os/unix/io/fd.rs
index 5bf6369122b..5a8b30c77c0 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);