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

Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
Dan Gohman 2021-07-21 10:06:26 -07:00
parent d15418586c
commit 3a38511ab3

View File

@ -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);