From 3a38511ab338cdfe5dbec2382b819f4834eeef1d Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 21 Jul 2021 10:06:26 -0700 Subject: [PATCH] Update library/std/src/os/unix/io/fd.rs Co-authored-by: Josh Triplett --- library/std/src/os/unix/io/fd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- GitLab