Skip to content

Commit cf3f6f6

Browse files
committed
Call out type conversion for Socket more
1 parent d158435 commit cf3f6f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/socket.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ use crate::{MaybeUninitSlice, RecvFlags};
3232
/// precisely one libc or OS API call which is essentially just a "Rustic
3333
/// translation" of what's below.
3434
///
35+
/// ## Converting to and from other types
36+
///
3537
/// This type can be freely converted into the network primitives provided by
3638
/// the standard library, such as [`TcpStream`] or [`UdpSocket`], using the
37-
/// [`Into`] trait, see the example below.
39+
/// [`From`] trait, see the example below.
3840
///
3941
/// [`TcpStream`]: std::net::TcpStream
4042
/// [`UdpSocket`]: std::net::UdpSocket

0 commit comments

Comments
 (0)