mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: explain more precisely what is the value returned by a match (#7556)
This commit is contained in:
@@ -1092,7 +1092,7 @@ s := match number {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
A match expression returns the final expression from each branch.
|
A match expression returns the value of the final expression from the matching branch.
|
||||||
|
|
||||||
```v
|
```v
|
||||||
enum Color {
|
enum Color {
|
||||||
|
|||||||
Reference in New Issue
Block a user