stacktic
/
dropbox
Archived
1
0
Fork 0

Fix typos

This commit is contained in:
Arnaud Ysmal 2014-07-12 20:06:22 +02:00
parent 01efebcc1a
commit 8022b93829
2 changed files with 4 additions and 4 deletions

View File

@ -332,10 +332,10 @@ func (ds *Datastore) validateChange(c *change) error {
maxIndex++ maxIndex++
} }
if op.Index > 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 { 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)
} }
} }
} }

View File

@ -247,12 +247,12 @@ func TestUnmarshalAwait(t *testing.T) {
res = tmp.Deltas res = tmp.Deltas
} }
if len(res) != len(expected) { 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 { for i, d := range res {
ed := expected[i] ed := expected[i]
if d.Revision != ed.Revision { 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 { for j, c := range d.Changes {
if !c.equals(ed.Changes[j]) { if !c.equals(ed.Changes[j]) {