]> git.lizzy.rs Git - rust.git/blob - src/docs/nonstandard_macro_braces.txt
Auto merge of #9421 - xphoniex:fix-#9420, r=giraffate
[rust.git] / src / docs / nonstandard_macro_braces.txt
1 ### What it does
2 Checks that common macros are used with consistent bracing.
3
4 ### Why is this bad?
5 This is mostly a consistency lint although using () or []
6 doesn't give you a semicolon in item position, which can be unexpected.
7
8 ### Example
9 ```
10 vec!{1, 2, 3};
11 ```
12 Use instead:
13 ```
14 vec![1, 2, 3];
15 ```