Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 99ab319

Browse files
authored
Rollup merge of rust-lang#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.
2 parents dd58d4e + d46660e commit 99ab319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libproc_macro/lib.rs

Lines changed: 2 additions & 2 deletions
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)