Skip to content

Commit

Permalink
Remove unrelated documentation (tokio-rs#618)
Browse files Browse the repository at this point in the history
Remove the SockAddr part from the send() documentation that was copied
from send_to().
  • Loading branch information
rom1v authored and carllerche committed Jun 15, 2017
1 parent b7e655d commit a823b40
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/net/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ impl UdpSocket {

/// Sends data on the socket to the address previously bound via connect(). On success,
/// returns the number of bytes written.
///
/// Address type can be any implementor of `ToSocketAddrs` trait. See its
/// documentation for concrete examples.
pub fn send(&self, buf: &[u8]) -> io::Result<usize> {
self.sys.send(buf)
}
Expand Down
3 changes: 0 additions & 3 deletions src/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ impl UdpSocket {

/// Sends data on the socket to the address previously bound via connect(). On success,
/// returns the number of bytes written.
///
/// Address type can be any implementor of `ToSocketAddrs` trait. See its
/// documentation for concrete examples.
pub fn send(&self, buf: &[u8])
-> io::Result<Option<usize>> {
self.sys.send(buf).map_non_block()
Expand Down

0 comments on commit a823b40

Please sign in to comment.