1
0
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:
Stéphane Aulery 2020-12-25 16:28:12 +01:00 committed by GitHub
parent 775d16cce3
commit 11519f3c54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {