Skip to content

Commit a97cc87

Browse files
authored
docs: correct a doc comment (#2317)
1 parent b171eeb commit a97cc87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl Dir {
5959
Dir::from_fd(fd.into_raw_fd())
6060
}
6161

62-
/// Converts from a file descriptor, closing it on success or failure.
62+
/// Converts from a file descriptor, closing it on failure.
6363
#[doc(alias("fdopendir"))]
6464
pub fn from_fd(fd: RawFd) -> Result<Self> {
6565
let d = ptr::NonNull::new(unsafe { libc::fdopendir(fd) }).ok_or_else(

0 commit comments

Comments
 (0)