summaryrefslogtreecommitdiff
path: root/json
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-10 22:10:30 +1000
committerAdam Scarr <adam@vektah.net>2017-08-10 22:10:30 +1000
commit945e9f0ef0d9e1e678435d3090d4a742f6682440 (patch)
tree18d97b26e44715cbf35c0dc7ec98ad6f3f2df95b /json
parent8a92b5348f8cf6769f30237df906ee9ce71ad237 (diff)
Improve cut godoc
Diffstat (limited to 'json')
-rw-r--r--json/json.go4
1 files changed, 2 insertions, 2 deletions
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 {