summaryrefslogtreecommitdiff
path: root/README_ZH_CN.md
diff options
context:
space:
mode:
Diffstat (limited to 'README_ZH_CN.md')
-rw-r--r--README_ZH_CN.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README_ZH_CN.md b/README_ZH_CN.md
index af83e8c..4fd4b39 100644
--- a/README_ZH_CN.md
+++ b/README_ZH_CN.md
@@ -475,9 +475,9 @@ match val {
// 解构枚举
match shape {
- Shape::Circle(r) => println "半径: {r}",
- Shape::Rect(w, h) => println "面积: {w*h}",
- Shape::Point => println "点"
+ Shape::Circle(r) => { println "半径: {r}" },
+ Shape::Rect(w, h) => { println "面积: {w*h}" },
+ Shape::Point => { println "点" },
}
```