Skip to content

Commit ad2b181

Browse files
authored
Update misc_docs/syntax/language_switch.mdx
1 parent f02b7ff commit ad2b181

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

misc_docs/syntax/language_switch.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ summary: "This is the `switch` pattern matching keyword."
66
category: "languageconstructs"
77
---
88

9-
A `switch` expression allows you to execute some code based on the shape of the data.
9+
A `switch` expression allows you to match / destructure almost any kind of value (array, list, records, strings, numbers, variants, etc). Each branch (pattern) of a `switch` expression must return a value of the same type.
1010

1111
### Example
1212

@@ -43,4 +43,3 @@ message =
4343
### References
4444

4545
* [Switch Based on Shape of Data](/docs/manual/latest/pattern-matching-destructuring#switch-based-on-shape-of-data)
46-

0 commit comments

Comments
 (0)