Skip to content

Commit

Permalink
socketaddr: apply documentation suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Ryhl <[email protected]>
  • Loading branch information
nmathewson and Darksonn authored Sep 25, 2024
1 parent 57cfe37 commit de97124
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tokio/src/net/unix/socketaddr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ use std::path::Path;

/// An address associated with a Tokio Unix socket.
///
/// This type is a think wrapper around
/// [`std::os::unix::net::SocketAddr`];
/// you can use [`From`] to wrap and unwrap
/// instances of [`std::os::unix::net::SocketAddr`] as this type.
/// This type is a thin wrapper around [`std::os::unix::net::SocketAddr`]. You
/// can convert to and from the standard library `SocketAddr` type using the
/// [`From`] trait.
pub struct SocketAddr(pub(super) std::os::unix::net::SocketAddr);

impl SocketAddr {
Expand Down

0 comments on commit de97124

Please sign in to comment.