Merge pull request #6959 from wind0r/switch_readme_update

update switch example to fit current coding style
This commit is contained in:
Michael Keller 2018-10-23 00:30:14 +13:00 committed by GitHub
commit 1fcdd8c784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -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;
} }
``` ```