Skip to content

Commit 991255c

Browse files
authored
modified: src/macros/designators.md (#170)
1 parent f7c4224 commit 991255c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/macros/designators.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,14 @@ fn main() {
5252
* `expr` 用于表达式
5353
* `ident` 用于变量名或函数名
5454
* `item`
55+
* `literal` 用于字面常量
5556
* `pat` (**模式** *pattern*)
5657
* `path`
5758
* `stmt` (**语句** *statement*)
5859
* `tt` (**标记树** *token tree*)
5960
* `ty` (**类型** *type*)
61+
* `vis` (*可见性描述符*)
62+
63+
完整列表详见 [Rust Reference]
64+
65+
[Rust Reference]: https://doc.rust-lang.org/reference/macros-by-example.html

0 commit comments

Comments
 (0)