From d46660edc97156865a9f99b03c2a94e4ee5c11b9 Mon Sep 17 00:00:00 2001 From: Steffen Date: Mon, 21 Aug 2017 17:17:27 +0200 Subject: [PATCH] libproc_macro docs: fix brace and bracket mixup the documentation indicates that brace is `[` but maps to token::Brace which (expectedly) is `{`. Just a little confusion in the docs. --- src/libproc_macro/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libproc_macro/lib.rs b/src/libproc_macro/lib.rs index 6a71e67676a..4fec02a64ae 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,