fix PokerSuit being written as PkerSuit
pull/271/head
RCJacH 3 years ago committed by GitHub
parent 060226f7c2
commit b027549715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,7 +26,7 @@ let heart = PokerSuit::Hearts;
let diamond = PokerSuit::Diamonds; let diamond = PokerSuit::Diamonds;
``` ```
我们通过`::`操作符来访问`PokerSuit`下的具体成员,从代码可以清晰看出,`heart`和`diamond`都是`PkerSuit`枚举类型的,接着可以定义一个函数来使用它们: 我们通过`::`操作符来访问`PokerSuit`下的具体成员,从代码可以清晰看出,`heart`和`diamond`都是`PokerSuit`枚举类型的,接着可以定义一个函数来使用它们:
```rust ```rust
fn main() { fn main() {
let heart = PokerSuit::Hearts; let heart = PokerSuit::Hearts;

Loading…
Cancel
Save