Skip to content

Commit 57b7d55

Browse files
committed
fix more links
1 parent 0579ef0 commit 57b7d55

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

src/doc/unstable-book/src/language-features/macro-literal-matcher.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ The tracking issue for this feature is: [#35625]
44

55
The RFC is: [rfc#1576].
66

7-
With this feature gate enabled, the [list of fragment specifiers][frags] gains one more entry:
7+
With this feature gate enabled, the [list of designators] gains one more entry:
88

99
* `literal`: a literal. Examples: 2, "string", 'c'
1010

1111
A `literal` may be followed by anything, similarly to the `ident` specifier.
1212

1313
[rfc#1576]: http://rust-lang.github.io/rfcs/1576-macros-literal-matcher.html
1414
[#35625]: https://github.com/rust-lang/rust/issues/35625
15-
[frags]: ../book/first-edition/macros.html#syntactic-requirements
15+
[list of designators]: ../reference/macros-by-example.html
1616

1717
------------------------

src/doc/unstable-book/src/language-features/plugin.md

-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ of extensions. See `Registry::register_syntax_extension` and the
137137

138138
## Tips and tricks
139139

140-
Some of the [macro debugging tips](../book/first-edition/macros.html#debugging-macro-code) are applicable.
141-
142140
You can use `syntax::parse` to turn token trees into
143141
higher-level syntax elements like expressions:
144142

src/libcore/iter/iterator.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ pub trait Iterator {
532532
/// If you're doing some sort of looping for a side effect, it's considered
533533
/// more idiomatic to use [`for`] than `map()`.
534534
///
535-
/// [`for`]: ../../book/first-edition/loops.html#for
535+
/// [`for`]: ../../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
536536
///
537537
/// # Examples
538538
///
@@ -580,7 +580,7 @@ pub trait Iterator {
580580
/// cases `for_each` may also be faster than a loop, because it will use
581581
/// internal iteration on adaptors like `Chain`.
582582
///
583-
/// [`for`]: ../../book/first-edition/loops.html#for
583+
/// [`for`]: ../../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
584584
///
585585
/// # Examples
586586
///
@@ -1669,7 +1669,7 @@ pub trait Iterator {
16691669
/// use a `for` loop with a list of things to build up a result. Those
16701670
/// can be turned into `fold()`s:
16711671
///
1672-
/// [`for`]: ../../book/first-edition/loops.html#for
1672+
/// [`for`]: ../../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
16731673
///
16741674
/// ```
16751675
/// let numbers = [1, 2, 3, 4, 5];

src/libstd/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
//! [slice]: primitive.slice.html
186186
//! [`atomic`]: sync/atomic/index.html
187187
//! [`collections`]: collections/index.html
188-
//! [`for`]: ../book/first-edition/loops.html#for
188+
/// [`for`]: ../../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
189189
//! [`format!`]: macro.format.html
190190
//! [`fs`]: fs/index.html
191191
//! [`io`]: io/index.html
@@ -200,14 +200,14 @@
200200
//! [`sync`]: sync/index.html
201201
//! [`thread`]: thread/index.html
202202
//! [`use std::env`]: env/index.html
203-
//! [`use`]: ../book/first-edition/crates-and-modules.html#importing-modules-with-use
204-
//! [crate root]: ../book/first-edition/crates-and-modules.html#basic-terminology-crates-and-modules
203+
//! [`use`]: ../book/ch07-02-modules-and-use-to-control-scope-and-privacy.html#use-to-bring-paths-into-scope
204+
//! [crate root]: ../book/ch07-01-packages-and-crates-for-making-libraries-and-executables.html
205205
//! [crates.io]: https://crates.io
206-
//! [deref-coercions]: ../book/second-edition/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods
206+
//! [deref-coercions]: ../book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods
207207
//! [files]: fs/struct.File.html
208208
//! [multithreading]: thread/index.html
209209
//! [other]: #what-is-in-the-standard-library-documentation
210-
//! [primitive types]: ../book/first-edition/primitive-types.html
210+
//! [primitive types]: ../book/ch03-02-data-types.html
211211
212212
#![stable(feature = "rust1", since = "1.0.0")]
213213
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

0 commit comments

Comments
 (0)