Fix typos: expectd->expected, cluser->cluster

Signed-off-by: mooncake <xcoder@tenxcloud.com>
This commit is contained in:
mooncake
2018-11-11 00:14:25 +08:00
parent 5b35443533
commit 538aaaf217
6 changed files with 6 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ func mutateField(
item := typedV[i]
typedItem, ok := item.(map[string]interface{})
if !ok {
return fmt.Errorf("%#v is expectd to be %T", item, typedItem)
return fmt.Errorf("%#v is expected to be %T", item, typedItem)
}
err := mutateField(typedItem, newPathToField, createIfNotPresent, fns...)
if err != nil {