diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-24 09:49:12 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-24 09:49:12 +0530 |
| commit | 7e3bb03429a9b0f50550ccf70dc2f82dd2fe4357 (patch) | |
| tree | eb1cf1b32838c4bab9684c2b6d99e774fcc7c118 | |
| parent | 292a25f7557ed229dd99c5537603084a7594d6f4 (diff) | |
| parent | 2f491228c01eda39d08dd7da0e419ceae523012a (diff) | |
| download | rust-7e3bb03429a9b0f50550ccf70dc2f82dd2fe4357.tar.gz rust-7e3bb03429a9b0f50550ccf70dc2f82dd2fe4357.zip | |
Rollup merge of #24743 - geofft:trpl-macros-links, r=steveklabnik
r? @steveklabnik
| -rw-r--r-- | src/doc/trpl/macros.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/doc/trpl/macros.md b/src/doc/trpl/macros.md index 9fa870ab1ac..9d01f104dda 100644 --- a/src/doc/trpl/macros.md +++ b/src/doc/trpl/macros.md @@ -57,8 +57,7 @@ let x: Vec<u32> = { We can implement this shorthand, using a macro: [^actual] [^actual]: The actual definition of `vec!` in libcollections differs from the - one presented here, for reasons of efficiency and reusability. Some - of these are mentioned in the [advanced macros chapter][]. + one presented here, for reasons of efficiency and reusability. ```rust macro_rules! vec { @@ -106,7 +105,7 @@ These have [their own little grammar] within the language. The matcher `$x:expr` will match any Rust expression, binding that syntax tree to the ‘metavariable’ `$x`. The identifier `expr` is a ‘fragment specifier’; -the full possibilities are enumerated in the [advanced macros chapter][]. +the full possibilities are enumerated later in this chapter. Surrounding the matcher with `$(...),*` will match zero or more expressions, separated by commas. @@ -566,7 +565,7 @@ When this library is loaded with `#[macro_use] extern crate`, only `m2` will be imported. The Rust Reference has a [listing of macro-related -attributes](../reference.html#macro--and-plugin-related-attributes). +attributes](../reference.html#macro-related-attributes). # The variable `$crate` |
