diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-08-23 08:44:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-23 08:44:26 -0400 |
| commit | 99ab3193da1e0cc91e7b7a9a0f3207ab71763299 (patch) | |
| tree | 3151a77e654ed02a04f9a7f9234c44a56dedddeb /src/libproc_macro | |
| parent | dd58d4e45ee2f066711557cf2da53d8661a56f34 (diff) | |
| parent | d46660edc97156865a9f99b03c2a94e4ee5c11b9 (diff) | |
Rollup merge of #44016 - steffengy:master, r=alexcrichton
libproc_macro docs: fix brace and bracket mixup
The documentation indicates that brace is `[`.
Brace is mapped token::Brace which (expectedly) is `{`.
So the documentation is simply confusing brace and bracket there.
Even though it's just a very small issue, it can lead to quite some confusion.
Diffstat (limited to 'src/libproc_macro')
| -rw-r--r-- | src/libproc_macro/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libproc_macro/lib.rs b/src/libproc_macro/lib.rs index 92386d6d060..38665b403d6 100644 --- a/src/libproc_macro/lib.rs +++ b/src/libproc_macro/lib.rs @@ -246,9 +246,9 @@ pub enum TokenNode { pub enum Delimiter { /// `( ... )` Parenthesis, - /// `[ ... ]` - Brace, /// `{ ... }` + Brace, + /// `[ ... ]` Bracket, /// An implicit delimiter, e.g. `$var`, where $var is `...`. None, |
