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/task | |
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/task')
-rw-r--r-- | tokio/src/task/local.rs | 10 | ||||
-rw-r--r-- | tokio/src/task/task_local.rs | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tokio/src/task/local.rs b/tokio/src/task/local.rs index fcb8c789..551362a1 100644 --- a/tokio/src/task/local.rs +++ b/tokio/src/task/local.rs @@ -105,9 +105,9 @@ cfg_rt_util! { /// ``` /// /// [`Send`]: https://doc.rust-lang.org/std/marker/trait.Send.html - /// [local task set]: struct.LocalSet.html + /// [local task set]: struct@LocalSet /// [`Runtime::block_on`]: ../struct.Runtime.html#method.block_on - /// [`task::spawn_local`]: fn.spawn.html + /// [`task::spawn_local`]: fn@spawn_local pub struct LocalSet { /// Current scheduler tick tick: Cell<u8>, @@ -266,7 +266,7 @@ impl LocalSet { /// }).await; /// } /// ``` - /// [`spawn_local`]: fn.spawn_local.html + /// [`spawn_local`]: fn@spawn_local pub fn spawn_local<F>(&self, future: F) -> JoinHandle<F::Output> where F: Future + 'static, @@ -335,7 +335,7 @@ impl LocalSet { /// }) /// ``` /// - /// [`spawn_local`]: fn.spawn_local.html + /// [`spawn_local`]: fn@spawn_local /// [`Runtime::block_on`]: ../struct.Runtime.html#method.block_on /// [in-place blocking]: ../blocking/fn.in_place.html /// [`spawn_blocking`]: ../blocking/fn.spawn_blocking.html @@ -372,7 +372,7 @@ impl LocalSet { /// } /// ``` /// - /// [`spawn_local`]: fn.spawn_local.html + /// [`spawn_local`]: fn@spawn_local /// [awaiting the local set]: #awaiting-a-localset pub async fn run_until<F>(&self, future: F) -> F::Output where diff --git a/tokio/src/task/task_local.rs b/tokio/src/task/task_local.rs index a3e7f03f..f3341b6a 100644 --- a/tokio/src/task/task_local.rs +++ b/tokio/src/task/task_local.rs @@ -219,7 +219,7 @@ impl<T: 'static, F: Future> Future for TaskLocalFuture<T, F> { trait StaticLifetime: 'static {} impl<T: 'static> StaticLifetime for T {} -/// An error returned by [`LocalKey::try_with`](struct.LocalKey.html#method.try_with). +/// An error returned by [`LocalKey::try_with`](method@LocalKey::try_with). #[derive(Clone, Copy, Eq, PartialEq)] pub struct AccessError { _private: (), |