doc: explain more precisely what is the value returned by a match (#7556)
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
|
```v
|
||||||
enum Color {
|
enum Color {
|
||||||
|
|
Loading…
Reference in New Issue