Skip to content

Commit

Permalink
Remove dccp_available_ccids example
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Nov 28, 2022
1 parent 50a67c5 commit acbf40a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/sys/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2197,18 +2197,6 @@ impl crate::Socket {
/// endpoints. The [documentation] recommends a minimum of four at the time
/// of writing.
///
/// The API should be used in the follow way:
///
/// ```no_run
/// # fn main() -> std::io::Result<()> {
/// use socket2::{Socket, Domain, Type, Protocol};
/// let socket = Socket::new(Domain::IPV4, Type::DCCP, Some(Protocol::DCCP))?;
/// let (endpoints_array, len) = socket.dccp_available_ccids::<4>()?;
/// let endpoints = &endpoints_array[..len];
/// # drop(endpoints);
/// # Ok(()) }
/// ```
///
/// [documentation]: https://www.kernel.org/doc/html/latest/networking/dccp.html
#[cfg(all(feature = "all", target_os = "linux"))]
#[cfg_attr(docsrs, doc(cfg(feature = "all", target_os = "linux")))]
Expand Down

0 comments on commit acbf40a

Please sign in to comment.