Added links to std::net::AddrParseError's documentation
Additionally changed the summary sentence to be more consistent with most of the other FromStr implementations' error types.
This commit is contained in:
@@ -368,7 +368,19 @@ impl FromStr for SocketAddr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An error returned when parsing an IP address or a socket address.
|
/// An error which can be returned when parsing an IP address or a socket address.
|
||||||
|
///
|
||||||
|
/// This error is used as the error type for the [`FromStr`] implementation for
|
||||||
|
/// [`IpAddr`], [`Ipv4Addr`], [`Ipv6Addr`], [`SocketAddr`], [`SocketAddrV4`], and
|
||||||
|
/// [`SocketAddrV6`].
|
||||||
|
///
|
||||||
|
/// [`FromStr`]: ../../std/str/trait.FromStr.html
|
||||||
|
/// [`IpAddr`]: ../../std/net/enum.IpAddr.html
|
||||||
|
/// [`Ipv4Addr`]: ../../std/net/struct.Ipv4Addr.html
|
||||||
|
/// [`Ipv6Addr`]: ../../std/net/struct.Ipv6Addr.html
|
||||||
|
/// [`SocketAddr`]: ../../std/net/enum.SocketAddr.html
|
||||||
|
/// [`SocketAddrV4`]: ../../std/net/struct.SocketAddrV4.html
|
||||||
|
/// [`SocketAddrV6`]: ../../std/net/struct.SocketAddrV6.html
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct AddrParseError(());
|
pub struct AddrParseError(());
|
||||||
|
|||||||
Reference in New Issue
Block a user