Fix typos
This commit is contained in:
parent
01efebcc1a
commit
8022b93829
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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]) {
|
||||||
|
|
Reference in New Issue
Block a user