Parcourir la source

Update 12.9.md (#391)

buhuipao il y a 8 ans
Parent
commit
2a51bab801
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      eBook/12.9.md

+ 1 - 1
eBook/12.9.md

@@ -133,7 +133,7 @@ json 包使用 `map[string]interface{}` 和 `[]interface{}` 储存任意的 JSON
 来看这个 JSON 数据,被存储在变量 b 中:
 
 ```go
-b == []byte({"Name": "Wednesday", "Age": 6, "Parents": ["Gomez", "Morticia"]})
+b := []byte(`{"Name": "Wednesday", "Age": 6, "Parents": ["Gomez", "Morticia"]}`)
 ```
 
 不用理解这个数据的结构,我们可以直接使用 Unmarshal 把这个数据编码并保存在接口值中: