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:
parent
775d16cce3
commit
11519f3c54
@ -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
|
||||
enum Color {
|
||||
|
Loading…
Reference in New Issue
Block a user