mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
doc: fix some links (#2834)
This commit is contained in:
parent
8d2e3bc575
commit
4c4699be00
@ -6,7 +6,7 @@
|
|||||||
rust_2018_idioms,
|
rust_2018_idioms,
|
||||||
unreachable_pub
|
unreachable_pub
|
||||||
)]
|
)]
|
||||||
#![deny(intra_doc_link_resolution_failure)]
|
#![cfg_attr(docsrs, deny(broken_intra_doc_links))]
|
||||||
#![doc(test(
|
#![doc(test(
|
||||||
no_crate_inject,
|
no_crate_inject,
|
||||||
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
|
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
|
||||||
|
@ -1067,7 +1067,7 @@ cfg_io_util! {
|
|||||||
/// (See also the [`crate::fs::read_to_string`] convenience function for
|
/// (See also the [`crate::fs::read_to_string`] convenience function for
|
||||||
/// reading from a file.)
|
/// reading from a file.)
|
||||||
///
|
///
|
||||||
/// [`crate::fs::read_to_string`]: crate::fs::read_to_string::read_to_string
|
/// [`crate::fs::read_to_string`]: fn@crate::fs::read_to_string
|
||||||
fn read_to_string<'a>(&'a mut self, dst: &'a mut String) -> ReadToString<'a, Self>
|
fn read_to_string<'a>(&'a mut self, dst: &'a mut String) -> ReadToString<'a, Self>
|
||||||
where
|
where
|
||||||
Self: Unpin,
|
Self: Unpin,
|
||||||
|
@ -125,7 +125,7 @@ impl UdpSocket {
|
|||||||
/// should ensure that when the remote cannot receive, the
|
/// should ensure that when the remote cannot receive, the
|
||||||
/// [`ErrorKind::WouldBlock`] is properly handled.
|
/// [`ErrorKind::WouldBlock`] is properly handled.
|
||||||
///
|
///
|
||||||
/// [`ErrorKind::WouldBlock`]: std::io::error::ErrorKind::WouldBlock
|
/// [`ErrorKind::WouldBlock`]: std::io::ErrorKind::WouldBlock
|
||||||
pub fn try_send(&self, buf: &[u8]) -> io::Result<usize> {
|
pub fn try_send(&self, buf: &[u8]) -> io::Result<usize> {
|
||||||
self.io.get_ref().send(buf)
|
self.io.get_ref().send(buf)
|
||||||
}
|
}
|
||||||
@ -209,7 +209,7 @@ impl UdpSocket {
|
|||||||
/// [`ErrorKind::WouldBlock`] is properly handled. An error can also occur
|
/// [`ErrorKind::WouldBlock`] is properly handled. An error can also occur
|
||||||
/// if the IP version of the socket does not match that of `target`.
|
/// if the IP version of the socket does not match that of `target`.
|
||||||
///
|
///
|
||||||
/// [`ErrorKind::WouldBlock`]: std::io::error::ErrorKind::WouldBlock
|
/// [`ErrorKind::WouldBlock`]: std::io::ErrorKind::WouldBlock
|
||||||
pub fn try_send_to(&self, buf: &[u8], target: SocketAddr) -> io::Result<usize> {
|
pub fn try_send_to(&self, buf: &[u8], target: SocketAddr) -> io::Result<usize> {
|
||||||
self.io.get_ref().send_to(buf, &target)
|
self.io.get_ref().send_to(buf, &target)
|
||||||
}
|
}
|
||||||
|
@ -397,8 +397,8 @@
|
|||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! [`watch` channel]: crate::sync::watch
|
//! [`watch` channel]: mod@crate::sync::watch
|
||||||
//! [`broadcast` channel]: crate::sync::broadcast
|
//! [`broadcast` channel]: mod@crate::sync::broadcast
|
||||||
//!
|
//!
|
||||||
//! # State synchronization
|
//! # State synchronization
|
||||||
//!
|
//!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user