From b027549715f5dab548bc9775e732b4755b42dab5 Mon Sep 17 00:00:00 2001 From: RCJacH Date: Thu, 20 Jan 2022 20:53:34 +0800 Subject: [PATCH] fix typo fix PokerSuit being written as PkerSuit --- book/contents/basic/compound-type/enum.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/contents/basic/compound-type/enum.md b/book/contents/basic/compound-type/enum.md index 3b940496..abc03fa8 100644 --- a/book/contents/basic/compound-type/enum.md +++ b/book/contents/basic/compound-type/enum.md @@ -26,7 +26,7 @@ let heart = PokerSuit::Hearts; let diamond = PokerSuit::Diamonds; ``` -我们通过`::`操作符来访问`PokerSuit`下的具体成员,从代码可以清晰看出,`heart`和`diamond`都是`PkerSuit`枚举类型的,接着可以定义一个函数来使用它们: +我们通过`::`操作符来访问`PokerSuit`下的具体成员,从代码可以清晰看出,`heart`和`diamond`都是`PokerSuit`枚举类型的,接着可以定义一个函数来使用它们: ```rust fn main() { let heart = PokerSuit::Hearts;