mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
Update library/std/src/os/unix/io/fd.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
parent
d15418586c
commit
3a38511ab3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user