feat: 数组类型语法 [T; N] 改为 T[N] 后置语法
This commit is contained in:
@@ -87,7 +87,7 @@ graph TB
|
||||
| 字符串 | `str` | `"hello"` |
|
||||
| 结构体 | `struct` | `Point { x: i64, y: i64 }` |
|
||||
| 枚举 | `enum` | `Color { Red, Green, Blue }` |
|
||||
| 数组 | `[T; N]` | `[i64; 10]` |
|
||||
| 数组 | `T[N]` | `i64[10]` |
|
||||
| 无返回值 | `void` | 函数默认 |
|
||||
| 类型别名 | `type` | `type Meters = i64;` |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user