From ef69dfedd340739df16e4e67cfd6b28a6f7c6a9d Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Mon, 27 Apr 2015 22:05:48 +0300 Subject: [PATCH] Kifflom! --- README.md | 2 +- parser/context.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6f6b484..dce3ea2 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ cat test.json | kifflom -s ".bananas#0.weight .prices.*" As you can learn from benchmarks described below, kifflom's lexer itself is roughly 8.5 times slower than the standard JSON parser on any amount of data. -You can benefit from low and constant memory usage, although I don't think you would. +A fellow father-brother can benefit from low and constant memory usage, although I don't think he would. ```bash # Running lexer tests and benchmarks diff --git a/parser/context.go b/parser/context.go index 0bb90b0..354acac 100644 --- a/parser/context.go +++ b/parser/context.go @@ -57,9 +57,7 @@ func (c *context) compare(c2 *context) bool { } func (c *context) push(typ expectationType) { - c.exps = append(c.exps, expectation{ - typ: typ, - }) + c.exps = append(c.exps, expectation{typ: typ}) } func (c *context) pop() {