diff options
author | xliiv <tymoteusz.jankowski@gmail.com> | 2020-04-12 19:25:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 10:25:55 -0700 |
commit | f39c15334e74b07a44efaa0f7201262e17e4f062 (patch) | |
tree | c13b2949b0a82d4443d83b724d7f99bae13a035e /tokio/src/io | |
parent | 060d22bd10ac66d91b70522138816c9bd05d5ead (diff) |
docs: replace some html links with rustdoc paths (#2381)
Included changes
- all simple references like `<type>.<name>.html` for these types
- enum
- fn
- struct
- trait
- type
- simple references for methods, like struct.DelayQueue.html#method.poll
Refs: #1473
Diffstat (limited to 'tokio/src/io')
-rw-r--r-- | tokio/src/io/mod.rs | 16 | ||||
-rw-r--r-- | tokio/src/io/poll_evented.rs | 2 | ||||
-rw-r--r-- | tokio/src/io/stdin.rs | 4 | ||||
-rw-r--r-- | tokio/src/io/util/empty.rs | 2 | ||||
-rw-r--r-- | tokio/src/io/util/repeat.rs | 2 |
5 files changed, 13 insertions, 13 deletions
diff --git a/tokio/src/io/mod.rs b/tokio/src/io/mod.rs index 6d6edf55..29d8bc55 100644 --- a/tokio/src/io/mod.rs +++ b/tokio/src/io/mod.rs @@ -138,20 +138,20 @@ //! context of the Tokio runtime, as they require Tokio-specific features to //! function. Calling these functions outside of a Tokio runtime will panic. //! -//! [input]: fn.stdin.html -//! [output]: fn.stdout.html -//! [error]: fn.stderr.html +//! [input]: fn@stdin +//! [output]: fn@stdout +//! [error]: fn@stderr //! //! # `std` re-exports //! //! Additionally, [`Error`], [`ErrorKind`], and [`Result`] are re-exported //! from `std::io` for ease of use. //! -//! [`AsyncRead`]: trait.AsyncRead.html -//! [`AsyncWrite`]: trait.AsyncWrite.html -//! [`Error`]: struct.Error.html -//! [`ErrorKind`]: enum.ErrorKind.html -//! [`Result`]: type.Result.html +//! [`AsyncRead`]: trait@AsyncRead +//! [`AsyncWrite`]: trait@AsyncWrite +//! [`Error`]: struct@Error +//! [`ErrorKind`]: enum@ErrorKind +//! [`Result`]: type@Result //! [`Read`]: std::io::Read //! [`Write`]: std::io::Write cfg_io_blocking! { diff --git a/tokio/src/io/poll_evented.rs b/tokio/src/io/poll_evented.rs index 2cf9a043..298e6e58 100644 --- a/tokio/src/io/poll_evented.rs +++ b/tokio/src/io/poll_evented.rs @@ -95,7 +95,7 @@ cfg_io_driver! { /// [`AsyncRead`]: ../io/trait.AsyncRead.html /// [`AsyncWrite`]: ../io/trait.AsyncWrite.html /// [`mio::Evented`]: https://docs.rs/mio/0.6/mio/trait.Evented.html - /// [`Registration`]: struct.Registration.html + /// [`Registration`]: struct@Registration /// [`TcpListener`]: ../net/struct.TcpListener.html /// [`clear_read_ready`]: #method.clear_read_ready /// [`clear_write_ready`]: #method.clear_write_ready diff --git a/tokio/src/io/stdin.rs b/tokio/src/io/stdin.rs index 634bd484..214c4d05 100644 --- a/tokio/src/io/stdin.rs +++ b/tokio/src/io/stdin.rs @@ -20,8 +20,8 @@ cfg_io_std! { /// /// Created by the [`stdin`] function. /// - /// [`stdin`]: fn.stdin.html - /// [`AsyncRead`]: trait.AsyncRead.html + /// [`stdin`]: fn@stdin + /// [`AsyncRead`]: trait@AsyncRead #[derive(Debug)] pub struct Stdin { std: Blocking<std::io::Stdin>, diff --git a/tokio/src/io/util/empty.rs b/tokio/src/io/util/empty.rs index 7075612f..121102c7 100644 --- a/tokio/src/io/util/empty.rs +++ b/tokio/src/io/util/empty.rs @@ -13,7 +13,7 @@ cfg_io_util! { /// /// This is an asynchronous version of [`std::io::empty`][std]. /// - /// [`empty`]: fn.empty.html + /// [`empty`]: fn@empty /// [std]: std::io::empty pub struct Empty { _p: (), diff --git a/tokio/src/io/util/repeat.rs b/tokio/src/io/util/repeat.rs index 064775ee..6b9067e8 100644 --- a/tokio/src/io/util/repeat.rs +++ b/tokio/src/io/util/repeat.rs @@ -13,7 +13,7 @@ cfg_io_util! { /// /// This is an asynchronous version of [`std::io::Repeat`][std]. /// - /// [repeat]: fn.repeat.html + /// [repeat]: fn@repeat /// [std]: std::io::Repeat #[derive(Debug)] pub struct Repeat { |