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,14 +47,14 @@ if (x is true) {
|
|||
|
||||
```
|
||||
switch (action) {
|
||||
case ADD:
|
||||
return "add";
|
||||
case REMOVE:
|
||||
return "remove";
|
||||
case CHANGE:
|
||||
return "change";
|
||||
default:
|
||||
return NULL;
|
||||
case ADD:
|
||||
return "add";
|
||||
case REMOVE:
|
||||
return "remove";
|
||||
case CHANGE:
|
||||
return "change";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue