]> git.lizzy.rs Git - rust.git/commitdiff
Fix reference to TCP in UDP docs
authorSteven Fackler <sfackler@gmail.com>
Mon, 25 Apr 2016 16:12:51 +0000 (09:12 -0700)
committerSteven Fackler <sfackler@gmail.com>
Mon, 25 Apr 2016 16:12:51 +0000 (09:12 -0700)
Closees #33195

src/libstd/net/udp.rs

index 4683c7061c3c83aee1a308f8903b5c846676bcf2..9d0279deb1bcb2bfc33ae32e4a8158c8cdb9d73a 100644 (file)
@@ -324,7 +324,7 @@ pub fn recv(&self, buf: &mut [u8]) -> io::Result<usize> {
         self.0.recv(buf)
     }
 
-    /// Moves this TCP stream into or out of nonblocking mode.
+    /// Moves this UDP socket into or out of nonblocking mode.
     ///
     /// On Unix this corresponds to calling fcntl, and on Windows this
     /// corresponds to calling ioctlsocket.