Merge pull request #31 from qinhanlei/patch-1

Update ch7-13.md
pull/32/head
Xargin 2017-12-01 11:43:53 +08:00 committed by GitHub
commit 374c07ae38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -48,11 +48,11 @@ switch语句可以简化if-else链如果这个if-else链对一连串值做相
```go
switch x.(type) {
case nil: // ...
case int, uint: // ...
case bool: // ...
case string: // ...
default: // ...
case nil: // ...
case int, uint: // ...
case bool: // ...
case string: // ...
default: // ...
}
```