Skip to content

Commit 3a38511

Browse files
Update library/std/src/os/unix/io/fd.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
1 parent d154185 commit 3a38511

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/os/unix/io

1 file changed

+1
-1
lines changed

library/std/src/os/unix/io/fd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl FromRawFd for OwnedFd {
9999
/// # Safety
100100
///
101101
/// The resource pointed to by `raw` must be open and suitable for assuming
102-
/// ownership.
102+
/// ownership. The resource must not require any cleanup other than `close`.
103103
#[inline]
104104
unsafe fn from_raw_fd(raw: RawFd) -> Self {
105105
assert_ne!(raw, -1i32);

0 commit comments

Comments
 (0)