]> git.lizzy.rs Git - rust.git/commitdiff
resolve comments
authorPrabakaran Kumaresshan <4676330+nixphix@users.noreply.github.com>
Wed, 19 Aug 2020 00:49:35 +0000 (06:19 +0530)
committerPrabakaran Kumaresshan <4676330+nixphix@users.noreply.github.com>
Wed, 19 Aug 2020 00:49:35 +0000 (06:19 +0530)
library/std/src/sys/unix/ext/net.rs

index f43869a1b2c83c6c29ffe5dba33f0e2203431457..55803ddfc43232209238a246ac65cafd5eb5313f 100644 (file)
@@ -408,8 +408,6 @@ pub fn peer_addr(&self) -> io::Result<SocketAddr> {
     /// indefinitely. An [`Err`] is returned if the zero [`Duration`] is passed to this
     /// method.
     ///
-    /// [`None`]: crate::option::Option::None
-    /// [`Err`]: crate::result::Result::Err
     /// [`read`]: io::Read::read
     ///
     /// # Examples
@@ -452,8 +450,6 @@ pub fn set_read_timeout(&self, timeout: Option<Duration>) -> io::Result<()> {
     /// indefinitely. An [`Err`] is returned if the zero [`Duration`] is
     /// passed to this method.
     ///
-    /// [`None`]: crate::option::Option::None
-    /// [`Err`]: crate::result::Result::Err
     /// [`read`]: io::Read::read
     ///
     /// # Examples
@@ -967,8 +963,6 @@ pub fn take_error(&self) -> io::Result<Option<io::Error>> {
     /// The iterator will never return [`None`] and will also not yield the
     /// peer's [`SocketAddr`] structure.
     ///
-    /// [`None`]: crate::option::Option::None
-    ///
     /// # Examples
     ///
     /// ```no_run
@@ -1036,8 +1030,6 @@ fn into_iter(self) -> Incoming<'a> {
 ///
 /// It will never return [`None`].
 ///
-/// [`None`]: crate::option::Option::None
-///
 /// # Examples
 ///
 /// ```no_run
@@ -1424,8 +1416,6 @@ pub fn send(&self, buf: &[u8]) -> io::Result<usize> {
     /// block indefinitely. An [`Err`] is returned if the zero [`Duration`]
     /// is passed to this method.
     ///
-    /// [`None`]: crate::option::Option::None
-    /// [`Err`]: crate::result::Result::Err
     /// [`recv`]: UnixDatagram::recv
     /// [`recv_from`]: UnixDatagram::recv_from
     ///
@@ -1470,7 +1460,6 @@ pub fn set_read_timeout(&self, timeout: Option<Duration>) -> io::Result<()> {
     /// block indefinitely. An [`Err`] is returned if the zero [`Duration`] is passed to this
     /// method.
     ///
-    /// [`None`]: crate::option::Option::None
     /// [`send`]: UnixDatagram::send
     /// [`send_to`]: UnixDatagram::send_to
     ///