提交 3a38511a 编写于 作者: D Dan Gohman

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

Co-authored-by: NJosh Triplett <josh@joshtriplett.org>
上级 d1541858
...@@ -99,7 +99,7 @@ impl FromRawFd for OwnedFd { ...@@ -99,7 +99,7 @@ impl FromRawFd for OwnedFd {
/// # Safety /// # Safety
/// ///
/// The resource pointed to by `raw` must be open and suitable for assuming /// 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] #[inline]
unsafe fn from_raw_fd(raw: RawFd) -> Self { unsafe fn from_raw_fd(raw: RawFd) -> Self {
assert_ne!(raw, -1i32); assert_ne!(raw, -1i32);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册