Merge pull request #6959 from wind0r/switch_readme_update
update switch example to fit current coding style
This commit is contained in:
commit
1fcdd8c784
|
@ -47,13 +47,13 @@ if (x is true) {
|
||||||
|
|
||||||
```
|
```
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case ADD:
|
case ADD:
|
||||||
return "add";
|
return "add";
|
||||||
case REMOVE:
|
case REMOVE:
|
||||||
return "remove";
|
return "remove";
|
||||||
case CHANGE:
|
case CHANGE:
|
||||||
return "change";
|
return "change";
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue