Fix misspells

Signed-off-by: Davor Kapsa <davor.kapsa@gmail.com>
This commit is contained in:
Davor Kapsa 2019-04-30 20:38:24 +02:00
parent bf5a424679
commit eded188f4f
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ func appendDistributionSourceLabel(originLabel, repo string) string {
} }
repos = append(repos, repo) repos = append(repos, repo)
// use emtpy string to present duplicate items // use empty string to present duplicate items
for i := 1; i < len(repos); i++ { for i := 1; i < len(repos); i++ {
tmp, j := repos[i], i-1 tmp, j := repos[i], i-1
for ; j >= 0 && repos[j] >= tmp; j-- { for ; j >= 0 && repos[j] >= tmp; j-- {

View File

@ -192,7 +192,7 @@ func benchmarkSnapshotter(b *testing.B, snapshotter snapshots.Snapshotter) {
assert.NilError(b, err) assert.NilError(b, err)
writeDuration += time.Since(timer) writeDuration += time.Since(timer)
parent = fmt.Sprintf("comitted-%d", atomic.AddInt64(&layerIndex, 1)) parent = fmt.Sprintf("committed-%d", atomic.AddInt64(&layerIndex, 1))
timer = time.Now() timer = time.Now()
err = snapshotter.Commit(ctx, parent, current) err = snapshotter.Commit(ctx, parent, current)