Skip to content

Commit fe53858

Browse files
committed
Fix typo is switch.md.
1 parent e30bd75 commit fe53858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/switch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The output is:
2424

2525
The value is: 1
2626

27-
Your real intention is the "`fmt.Println("The value is: ", val)`" will be executed when `val` is `0` or `1`, but in fact, the statement only take effect when `val` is `1`. To fulfill your request, there are `2` methods:
27+
Your real intention is the "`fmt.Println("The value is: ", val)`" will be executed when `val` is `0` or `1`, but in fact, the statement only takes effect when `val` is `1`. To fulfill your request, there are `2` methods:
2828

2929
(1) Use `fallthrough`:
3030

0 commit comments

Comments
 (0)