diff --git a/remotes/docker/handler.go b/remotes/docker/handler.go index 21872b5f6..1a355783b 100644 --- a/remotes/docker/handler.go +++ b/remotes/docker/handler.go @@ -88,7 +88,7 @@ func appendDistributionSourceLabel(originLabel, repo string) string { } 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++ { tmp, j := repos[i], i-1 for ; j >= 0 && repos[j] >= tmp; j-- { diff --git a/snapshots/benchsuite/benchmark_test.go b/snapshots/benchsuite/benchmark_test.go index b393cb1b3..05e3a183a 100644 --- a/snapshots/benchsuite/benchmark_test.go +++ b/snapshots/benchsuite/benchmark_test.go @@ -192,7 +192,7 @@ func benchmarkSnapshotter(b *testing.B, snapshotter snapshots.Snapshotter) { assert.NilError(b, err) 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() err = snapshotter.Commit(ctx, parent, current)