Skip to content

Commit 6224522

Browse files
committed
Fix Socket example
1 parent c4804be commit 6224522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ use crate::{Domain, Protocol, SockAddr, Type};
7474
///
7575
/// // On platforms that don't support `SOCK_CLOEXEC`, use `FD_CLOEXEC`.
7676
/// #[cfg(all(not(windows), not(any(target_os = "android", target_os = "dragonfly", target_os = "freebsd", target_os = "linux", target_os = "netbsd", target_os = "openbsd"))))]
77-
/// socket.set_cloexec()?;
77+
/// socket.set_cloexec(true)?;
7878
///
7979
/// // On macOS and iOS set `NOSIGPIPE`.
8080
/// #[cfg(target_vendor = "apple")]

0 commit comments

Comments
 (0)