Skip to content

Commit bd24b6c

Browse files
committed
Fix Socket example
1 parent 3d48338 commit bd24b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socket.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use crate::{Domain, Protocol, SockAddr, Type};
5252
///
5353
/// // On platforms that support it set `SOCK_CLOEXEC`.
5454
/// #[cfg(any(target_os = "android", target_os = "dragonfly", target_os = "freebsd", target_os = "linux", target_os = "netbsd", target_os = "openbsd"))]
55-
/// let protocol = protocol.cloexec();
55+
/// let ty = ty.cloexec();
5656
///
5757
/// let socket = Socket::new(domain, ty, Some(protocol))?;
5858
///

0 commit comments

Comments
 (0)