浏览代码

Fix a typo in comment of parseMaybeJSONToList

Signed-off-by: Yu Changchun <yuchangchun1@huawei.com>
y00277921 10 年之前
父节点
当前提交
24dd8a4698
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      builder/parser/line_parsers.go

+ 1 - 1
builder/parser/line_parsers.go

@@ -279,7 +279,7 @@ func parseMaybeJSON(rest string) (*Node, map[string]bool, error) {
 }
 }
 
 
 // parseMaybeJSONToList determines if the argument appears to be a JSON array. If
 // parseMaybeJSONToList determines if the argument appears to be a JSON array. If
-// so, passes to parseJSON; if not, attmpts to parse it as a whitespace
+// so, passes to parseJSON; if not, attempts to parse it as a whitespace
 // delimited string.
 // delimited string.
 func parseMaybeJSONToList(rest string) (*Node, map[string]bool, error) {
 func parseMaybeJSONToList(rest string) (*Node, map[string]bool, error) {
 	node, attrs, err := parseJSON(rest)
 	node, attrs, err := parseJSON(rest)