mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-18 00:00:09 +02:00
Remove relative link when possible and fix invalid links (#2423)
The link to tokio::main was relative to tokio_macros crate in the source directory. This is why it worked in local build of documentation and not in doc.rs. Refs: #1473
This commit is contained in:
@@ -367,9 +367,9 @@
|
||||
//! [`LengthDelimitedCodec::new()`]: method@LengthDelimitedCodec::new
|
||||
//! [`FramedRead`]: struct@FramedRead
|
||||
//! [`FramedWrite`]: struct@FramedWrite
|
||||
//! [`AsyncRead`]: ../../trait.AsyncRead.html
|
||||
//! [`AsyncWrite`]: ../../trait.AsyncWrite.html
|
||||
//! [`Encoder`]: ../trait.Encoder.html
|
||||
//! [`AsyncRead`]: trait@tokio::io::AsyncRead
|
||||
//! [`AsyncWrite`]: trait@tokio::io::AsyncWrite
|
||||
//! [`Encoder`]: trait@Encoder
|
||||
//! [`BytesMut`]: https://docs.rs/bytes/0.4/bytes/struct.BytesMut.html
|
||||
|
||||
use crate::codec::{Decoder, Encoder, Framed, FramedRead, FramedWrite};
|
||||
|
||||
@@ -92,11 +92,11 @@ cfg_io_driver! {
|
||||
///
|
||||
/// [`std::io::Read`]: https://doc.rust-lang.org/std/io/trait.Read.html
|
||||
/// [`std::io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html
|
||||
/// [`AsyncRead`]: ../io/trait.AsyncRead.html
|
||||
/// [`AsyncWrite`]: ../io/trait.AsyncWrite.html
|
||||
/// [`AsyncRead`]: trait@AsyncRead
|
||||
/// [`AsyncWrite`]: trait@AsyncWrite
|
||||
/// [`mio::Evented`]: https://docs.rs/mio/0.6/mio/trait.Evented.html
|
||||
/// [`Registration`]: struct@Registration
|
||||
/// [`TcpListener`]: ../net/struct.TcpListener.html
|
||||
/// [`TcpListener`]: struct@crate::net::TcpListener
|
||||
/// [`clear_read_ready`]: #method.clear_read_ready
|
||||
/// [`clear_write_ready`]: #method.clear_write_ready
|
||||
/// [`poll_read_ready`]: #method.poll_read_ready
|
||||
|
||||
@@ -334,7 +334,7 @@ impl Runtime {
|
||||
/// ```
|
||||
///
|
||||
/// [mod]: index.html
|
||||
/// [main]: ../../tokio_macros/attr.main.html
|
||||
/// [main]: ../attr.main.html
|
||||
/// [threaded scheduler]: index.html#threaded-scheduler
|
||||
/// [basic scheduler]: index.html#basic-scheduler
|
||||
/// [runtime builder]: crate::runtime::Builder
|
||||
|
||||
@@ -29,7 +29,7 @@ use std::{fmt, thread};
|
||||
/// See [LocalKey documentation][`tokio::task::LocalKey`] for more
|
||||
/// information.
|
||||
///
|
||||
/// [`tokio::task::LocalKey`]: ../tokio/task/struct.LocalKey.html
|
||||
/// [`tokio::task::LocalKey`]: struct@crate::task::LocalKey
|
||||
#[macro_export]
|
||||
macro_rules! task_local {
|
||||
// empty (base case for the recursion)
|
||||
|
||||
Reference in New Issue
Block a user