Skip to content

Commit d46660e

Browse files
committed
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.
1 parent 757b7ac commit d46660e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libproc_macro/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ pub enum TokenNode {
246246
pub enum Delimiter {
247247
/// `( ... )`
248248
Parenthesis,
249-
/// `[ ... ]`
250-
Brace,
251249
/// `{ ... }`
250+
Brace,
251+
/// `[ ... ]`
252252
Bracket,
253253
/// An implicit delimiter, e.g. `$var`, where $var is `...`.
254254
None,

0 commit comments

Comments
 (0)