mirror of
				https://github.com/gopl-zh/gopl-zh.github.com.git
				synced 2025-10-31 18:21:36 +00:00 
			
		
		
		
	Update ch7-13.md
This commit is contained in:
		| @@ -48,11 +48,11 @@ switch语句可以简化if-else链,如果这个if-else链对一连串值做相 | |||||||
|  |  | ||||||
| ```go | ```go | ||||||
| switch x.(type) { | switch x.(type) { | ||||||
| 	case nil:       // ... | case nil:       // ... | ||||||
| 	case int, uint: // ... | case int, uint: // ... | ||||||
| 	case bool:      // ... | case bool:      // ... | ||||||
| 	case string:    // ... | case string:    // ... | ||||||
| 	default:        // ... | default:        // ... | ||||||
| } | } | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user