Update enum.md

pull/174/head
Jesse 3 years ago committed by GitHub
parent bdb8c263c6
commit 691c0e2b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
# 枚举 # 枚举
枚举(enum或enumeration)允许你通过列举可能的成员来定义一个**枚举类型**,例如扑克牌花色: 枚举(enum或enumeration)允许你通过列举可能的成员来定义一个**枚举类型**例如扑克牌花色:
```rust ```rust
enum PokerSuit { enum PokerSuit {
Clubs, Clubs,

Loading…
Cancel
Save