mirror of
https://github.com/golang/go.git
synced 2024-11-22 05:40:42 +00:00
Add note regarding fallthrough in type switch
parent
3076226695
commit
4e9ead6266
@ -173,6 +173,8 @@ default:
|
||||
error()
|
||||
}
|
||||
```
|
||||
Note: `fallthrough` does not work in type switch.
|
||||
|
||||
## Multiple cases
|
||||
|
||||
If you want to use multiple values in the same case, use a comma-separated list.
|
||||
|
Loading…
Reference in New Issue
Block a user