From b9d3974df0d5130ca9d0c272ca63b14ee8ce0a46 Mon Sep 17 00:00:00 2001 From: carlory Date: Mon, 18 Sep 2017 15:38:35 +0800 Subject: [PATCH 1/2] fix func comment --- pkg/chartutil/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chartutil/files.go b/pkg/chartutil/files.go index 6ce619e89..01ebcc8d7 100644 --- a/pkg/chartutil/files.go +++ b/pkg/chartutil/files.go @@ -183,7 +183,7 @@ func ToYaml(v interface{}) string { // This is not a general-purpose YAML parser, and will not parse all valid // YAML documents. Additionally, because its intended use is within templates // it tolerates errors. It will insert the returned error message string into -// m["error"] in the returned map. +// m["Error"] in the returned map. func FromYaml(str string) map[string]interface{} { m := map[string]interface{}{} From ad2d8e434a3cf18d1c75699f1fae73c47c613c03 Mon Sep 17 00:00:00 2001 From: carlory Date: Mon, 18 Sep 2017 15:46:36 +0800 Subject: [PATCH 2/2] fix fromjson comment --- pkg/chartutil/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chartutil/files.go b/pkg/chartutil/files.go index 01ebcc8d7..687a9a8d6 100644 --- a/pkg/chartutil/files.go +++ b/pkg/chartutil/files.go @@ -225,7 +225,7 @@ func ToJson(v interface{}) string { // This is not a general-purpose JSON parser, and will not parse all valid // YAML documents. Additionally, because its intended use is within templates // it tolerates errors. It will insert the returned error message string into -// m["error"] in the returned map. +// m["Error"] in the returned map. func FromJson(str string) map[string]interface{} { m := map[string]interface{}{}