Skip to content

Commit

Permalink
Fix Socket example
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Oct 8, 2020
1 parent 3d48338 commit bd24b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ use crate::{Domain, Protocol, SockAddr, Type};
///
/// // On platforms that support it set `SOCK_CLOEXEC`.
/// #[cfg(any(target_os = "android", target_os = "dragonfly", target_os = "freebsd", target_os = "linux", target_os = "netbsd", target_os = "openbsd"))]
/// let protocol = protocol.cloexec();
/// let ty = ty.cloexec();
///
/// let socket = Socket::new(domain, ty, Some(protocol))?;
///
Expand Down

0 comments on commit bd24b6c

Please sign in to comment.