From 8022b93829cd3074ad57d3c75f0f38efc7acd5e3 Mon Sep 17 00:00:00 2001 From: Arnaud Ysmal Date: Sat, 12 Jul 2014 20:06:22 +0200 Subject: [PATCH] Fix typos --- datastores_changes.go | 4 ++-- datastores_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datastores_changes.go b/datastores_changes.go index d507f03..b97c6a7 100644 --- a/datastores_changes.go +++ b/datastores_changes.go @@ -332,10 +332,10 @@ func (ds *Datastore) validateChange(c *change) error { maxIndex++ } if op.Index > maxIndex { - return fmt.Errorf("out of bound access index %d on [0:%s]", op.Index, maxIndex) + return fmt.Errorf("out of bound access index %d on [0:%d]", op.Index, maxIndex) } if op.Index2 > maxIndex { - return fmt.Errorf("out of bound access index %d on [0:%s]", op.Index, maxIndex) + return fmt.Errorf("out of bound access index %d on [0:%d]", op.Index, maxIndex) } } } diff --git a/datastores_test.go b/datastores_test.go index 3707240..e153528 100644 --- a/datastores_test.go +++ b/datastores_test.go @@ -247,12 +247,12 @@ func TestUnmarshalAwait(t *testing.T) { res = tmp.Deltas } if len(res) != len(expected) { - t.Fatalf("got %d results expected %s", len(res), len(expected)) + t.Fatalf("got %d results expected %d", len(res), len(expected)) } for i, d := range res { ed := expected[i] if d.Revision != ed.Revision { - t.Errorf("wrong revision got %d expected %s", d.Revision, expected[i].Revision) + t.Errorf("wrong revision got %d expected %d", d.Revision, expected[i].Revision) } for j, c := range d.Changes { if !c.equals(ed.Changes[j]) {