Skip to content

Commit c06210f

Browse files
committed
Fix links.
1 parent 97f76ad commit c06210f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/expressions/await-expr.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ More specifically, an `<expr>.await` expression has the following effect.
2323
value contained in the [`Poll::Ready`] variant is used as the result
2424
of the `await` expression itself.
2525

26-
[future]: https://doc.rust-lang.org/std/future/trait.Future.html
26+
[future]: ../std/future/trait.Future.html
2727
[_Expression_]: expressions.html
28-
[`Future::poll`]: https://doc.rust-lang.org/std/future/trait.Future.html#tymethod.poll
29-
[`Context`]: https://doc.rust-lang.org/std/task/struct.Context.html
30-
[`Poll::Pending`]: https://doc.rust-lang.org/std/task/enum.Poll.html#variant.Pending
31-
[`Poll::Ready`]: https://doc.rust-lang.org/std/task/enum.Poll.html#variant.Ready
28+
[`Future::poll`]: ../std/future/trait.Future.html#tymethod.poll
29+
[`Context`]: ../std/task/struct.Context.html
30+
[`Poll::Pending`]: ../std/task/enum.Poll.html#variant.Pending
31+
[`Poll::Ready`]: ../std/task/enum.Poll.html#variant.Ready
3232

3333
> **Edition differences**: Await expressions are only available in Rust 2018.
3434
@@ -39,8 +39,8 @@ current [async context] when the async context itself was
3939
polled. Because `await` expressions are only legal in an async
4040
context, there must be some task context available.
4141

42-
[`Context`]: https://doc.rust-lang.org/std/task/struct.Context.html
43-
[async context]: ../expressions/block-expr.html#async-context
42+
[`Context`]: ../std/task/struct.Context.html
43+
[async context]: expressions/block-expr.html#async-context
4444

4545
## Approximate desugaring
4646

src/expressions/block-expr.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ Async blocks capture variables from their environment using the same
111111
content of the block. `async move { .. }` blocks however will move all
112112
referenced variables are moved into the resulting future.
113113

114-
[capture modes]: ../types/closure.html#capture-modes
115-
[shared references]: ../types/pointer.html#shared-references-
116-
[mutable reference]: ../types/pointer.html#mutables-references-
114+
[capture modes]: types/closure.html#capture-modes
115+
[shared references]: types/pointer.html#shared-references-
116+
[mutable reference]: types/pointer.html#mutables-references-
117117

118118
### Async context
119119

@@ -122,7 +122,7 @@ context** which can in turn contain [`await` expressions]. Async
122122
contexts are established by async blocks as well as the bodies of
123123
async functions, whose semantics are defined in terms of async blocks.
124124

125-
[`await` expressions]: ../expressions/await-expr.html
125+
[`await` expressions]: expressions/await-expr.html
126126

127127
### Control-flow operators
128128

0 commit comments

Comments
 (0)