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:
damienrg
2020-04-21 13:08:07 +02:00
committed by GitHub
parent 282b00cbe8
commit 43bbbf61a2
4 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -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};
+3 -3
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)