Skip to content

Commit c51ad14

Browse files
committed
doc: fix links to comply with the new rustdoc
Closes #9911.
1 parent 73e2dc4 commit c51ad14

File tree

2 files changed

+37
-35
lines changed

2 files changed

+37
-35
lines changed

doc/tutorial-tasks.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ concurrency at this writing:
5353
for safely sharing immutable data,
5454
* [`extra::future`] - A type representing values that may be computed concurrently and retrieved at a later time.
5555

56-
[`std::task`]: std/task.html
57-
[`std::comm`]: std/comm.html
58-
[`extra::comm`]: extra/comm.html
59-
[`extra::sync`]: extra/sync.html
60-
[`extra::arc`]: extra/arc.html
61-
[`extra::future`]: extra/future.html
56+
[`std::task`]: std/task/index.html
57+
[`std::comm`]: std/comm/index.html
58+
[`extra::comm`]: extra/comm/index.html
59+
[`extra::sync`]: extra/sync/index.html
60+
[`extra::arc`]: extra/arc/index.html
61+
[`extra::future`]: extra/future/index.html
6262

6363
# Basics
6464

@@ -449,7 +449,7 @@ enum. If the child task terminates successfully, `try` will
449449
return an `Ok` result; if the child task fails, `try` will return
450450
an `Error` result.
451451

452-
[`Result`]: std/result.html
452+
[`Result`]: std/result/index.html
453453

454454
> ***Note:*** A failed task does not currently produce a useful error
455455
> value (`try` always returns `Err(())`). In the

doc/tutorial.md

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,8 +1391,8 @@ Both vectors and strings support a number of useful
13911391
[methods](#methods), defined in [`std::vec`]
13921392
and [`std::str`]. Here are some examples.
13931393

1394-
[`std::vec`]: std/vec.html
1395-
[`std::str`]: std/str.html
1394+
[`std::vec`]: std/vec/index.html
1395+
[`std::str`]: std/str/index.html
13961396

13971397
~~~
13981398
# enum Crayon {
@@ -2966,30 +2966,30 @@ The full documentation for `std` can be found here: [standard library].
29662966

29672967
[standard library]: std/index.html
29682968
[`std`]: std/index.html
2969-
[`bool`]: std/bool.html
2970-
[tuples]: std/tuple.html
2971-
[characters]: std/char.html
2972-
[strings]: std/str.html
2973-
[vectors]: std/vec.html
2974-
[managed boxes]: std/managed.html
2975-
[owned boxes]: std/owned.html
2976-
[pointers]: std/ptr.html
2977-
[`option`]: std/option.html
2978-
[`result`]: std/result.html
2979-
[task]: std/task.html
2980-
[communication]: std/comm.html
2981-
[`os`]: std/os.html
2982-
[`path`]: std/path.html
2983-
[`io`]: std/io.html
2984-
[containers]: std/container.html
2985-
[`hashmap`]: std/hashmap.html
2986-
[`kinds`]: std/kinds.html
2987-
[`ops`]: std/ops.html
2988-
[`cmp`]: std/cmp.html
2989-
[`num`]: std/num.html
2990-
[`to_str`]: std/to_str.html
2991-
[`clone`]: std/clone.html
2992-
[`libc`]: std/libc.html
2969+
[`bool`]: std/bool/index.html
2970+
[tuples]: std/tuple/index.html
2971+
[characters]: std/char/index.html
2972+
[strings]: std/str/index.html
2973+
[vectors]: std/vec/index.html
2974+
[managed boxes]: std/managed/index.html
2975+
[owned boxes]: std/owned/index.html
2976+
[pointers]: std/ptr/index.html
2977+
[`option`]: std/option/index.html
2978+
[`result`]: std/result/index.html
2979+
[task]: std/task/index.html
2980+
[communication]: std/comm/index.html
2981+
[`os`]: std/os/index.html
2982+
[`path`]: std/path/index.html
2983+
[`io`]: std/io/index.html
2984+
[containers]: std/container/index.html
2985+
[`hashmap`]: std/hashmap/index.html
2986+
[`kinds`]: std/kinds/index.html
2987+
[`ops`]: std/ops/index.html
2988+
[`cmp`]: std/cmp/index.html
2989+
[`num`]: std/num/index.html
2990+
[`to_str`]: std/to_str/index.html
2991+
[`clone`]: std/clone/index.html
2992+
[`libc`]: std/libc/index.html
29932993

29942994
## The extra library
29952995

@@ -3012,8 +3012,8 @@ tutorials on individual topics.
30123012
* [Tasks and communication][tasks]
30133013
* [Macros][macros]
30143014
* [The foreign function interface][ffi]
3015-
* [Containers and iterators](tutorial-container.html)
3016-
* [Error-handling and Conditions](tutorial-conditions.html)
3015+
* [Containers and iterators][container]
3016+
* [Error-handling and Conditions][conditions]
30173017
* [Packaging up Rust code][rustpkg]
30183018

30193019
There is further documentation on the [wiki], however those tend to be even more out of date as this document.
@@ -3022,6 +3022,8 @@ There is further documentation on the [wiki], however those tend to be even more
30223022
[tasks]: tutorial-tasks.html
30233023
[macros]: tutorial-macros.html
30243024
[ffi]: tutorial-ffi.html
3025+
[container]: tutorial-container.html
3026+
[conditions]: tutorial-conditions.html
30253027
[rustpkg]: tutorial-rustpkg.html
30263028

30273029
[wiki]: https://github.com/mozilla/rust/wiki/Docs

0 commit comments

Comments
 (0)