docs: fix incorrect documentation links & formatting (#2332)

The streams documentation referred to module-level 'split' doc which is no longer there
This commit is contained in:
Nikita Baksalyar 2020-04-12 14:59:37 +01:00 committed by GitHub
parent 1e679748ec
commit 8118f8f117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 10 deletions

View File

@ -614,9 +614,6 @@ impl TcpStream {
/// Splits a `TcpStream` into a read half and a write half, which can be used
/// to read and write the stream concurrently.
///
/// See the module level documenation of [`split`](super::split) for more
/// details.
pub fn split(&mut self) -> (ReadHalf<'_>, WriteHalf<'_>) {
split(self)
}

View File

@ -74,9 +74,6 @@ impl UdpSocket {
/// Splits the `UdpSocket` into a receive half and a send half. The two parts
/// can be used to receive and send datagrams concurrently, even from two
/// different tasks.
///
/// See the module level documenation of [`split`](super::split) for more
/// details.
pub fn split(self) -> (RecvHalf, SendHalf) {
split(self)
}

View File

@ -111,9 +111,6 @@ impl UnixStream {
/// Split a `UnixStream` into a read half and a write half, which can be used
/// to read and write the stream concurrently.
///
/// See the module level documenation of [`split`](super::split) for more
/// details.
pub fn split(&mut self) -> (ReadHalf<'_>, WriteHalf<'_>) {
split(self)
}

View File

@ -96,7 +96,7 @@ impl Error for TryRecvError {}
// ===== ClosedError =====
/// Error returned by [`Sender::poll_ready`](super::Sender::poll_ready)].
/// Error returned by [`Sender::poll_ready`](super::Sender::poll_ready).
#[derive(Debug)]
pub struct ClosedError(());