From d97e3caf4fdd0bcde68156c84e1af678df2ddb76 Mon Sep 17 00:00:00 2001 From: Steve Yen Date: Fri, 22 Jan 2016 09:04:24 -0800 Subject: [PATCH] fix comment typo --- index/store/metrics/writer.go | 2 +- mapping_index.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index/store/metrics/writer.go b/index/store/metrics/writer.go index 1c648f1f..8d982f6c 100644 --- a/index/store/metrics/writer.go +++ b/index/store/metrics/writer.go @@ -24,7 +24,7 @@ func (w *Writer) NewBatch() store.KVBatch { } func (w *Writer) NewBatchEx(options store.KVBatchOptions) ([]byte, store.KVBatch, error) { - buf, b, err := w.o.NewBatchEx(options) + buf, b, err := w.o.NewBatchEx(options) if err != nil { return nil, nil, err } diff --git a/mapping_index.go b/mapping_index.go index 45c91ace..26e9f441 100644 --- a/mapping_index.go +++ b/mapping_index.go @@ -363,7 +363,7 @@ func (im *IndexMapping) UnmarshalJSON(data []byte) error { } func (im *IndexMapping) determineType(data interface{}) string { - // first see if the object implements Identifier + // first see if the object implements Classifier classifier, ok := data.(Classifier) if ok { return classifier.Type()