From 945e9f0ef0d9e1e678435d3090d4a742f6682440 Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Thu, 10 Aug 2017 22:10:30 +1000 Subject: Improve cut godoc --- json/json.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'json/json.go') diff --git a/json/json.go b/json/json.go index 8129a8a..52166f8 100644 --- a/json/json.go +++ b/json/json.go @@ -13,7 +13,7 @@ var ( _number = NumberLit() _properties = Some(Seq(StringLit(`"`), ":", &_value), ",") - _array = Map(Seq("[", Cut, Some(&_value, ","), "]"), func(n Result) Result { + _array = Map(Seq("[", Cut(), Some(&_value, ","), "]"), func(n Result) Result { ret := []interface{}{} for _, child := range n.Child[2].Child { ret = append(ret, child.Result) @@ -21,7 +21,7 @@ var ( return Result{Result: ret} }) - _object = Map(Seq("{", Cut, _properties, "}"), func(n Result) Result { + _object = Map(Seq("{", Cut(), _properties, "}"), func(n Result) Result { ret := map[string]interface{}{} for _, prop := range n.Child[2].Child { -- cgit v1.2.3