Merge pull request #1308 from toplyb/fix-enum

fix: update enum.md
pull/1322/head
Sunface 11 months ago committed by GitHub
commit d6e6675215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -41,6 +41,7 @@ fn main() {
}
fn print_suit(card: PokerSuit) {
// 需要在定义 enum PokerSuit 的上面添加上 #[derive(Debug)],否则会报 card 没有实现 Debug
println!("{:?}",card);
}
```

Loading…
Cancel
Save