diff --git a/cmd/containerd/command/service_unsupported.go b/cmd/containerd/command/service_unsupported.go index 83c333b05..b28205255 100644 --- a/cmd/containerd/command/service_unsupported.go +++ b/cmd/containerd/command/service_unsupported.go @@ -29,7 +29,7 @@ func serviceFlags() []cli.Flag { return nil } -// applyPlatformFlags applys platform-specific flags. +// applyPlatformFlags applies platform-specific flags. func applyPlatformFlags(context *cli.Context) { } diff --git a/container_linux_test.go b/container_linux_test.go index 0e1769eb6..09e00b0e2 100644 --- a/container_linux_test.go +++ b/container_linux_test.go @@ -174,7 +174,7 @@ func TestShimInCgroup(t *testing.T) { t.Fatal(err) } if len(processes) == 0 { - t.Errorf("created cgroup should have atleast one process inside: %d", len(processes)) + t.Errorf("created cgroup should have at least one process inside: %d", len(processes)) } if err := task.Kill(ctx, unix.SIGKILL); err != nil { t.Fatal(err) diff --git a/images/archive/importer.go b/images/archive/importer.go index 539900685..5bc887130 100644 --- a/images/archive/importer.go +++ b/images/archive/importer.go @@ -124,7 +124,7 @@ func ImportIndex(ctx context.Context, store content.Store, reader io.Reader, opt } // If OCI layout was given, interpret the tar as an OCI layout. - // When not provided, the layout of the tar will be interpretted + // When not provided, the layout of the tar will be interpreted // as Docker v1.1 or v1.2. if ociLayout.Version != "" { if ociLayout.Version != ocispec.ImageLayoutVersion { diff --git a/oci/spec.go b/oci/spec.go index dad87411c..035bb7e7d 100644 --- a/oci/spec.go +++ b/oci/spec.go @@ -78,7 +78,7 @@ func generateDefaultSpecWithPlatform(ctx context.Context, platform, id string, s return err } -// ApplyOpts applys the options to the given spec, injecting data from the +// ApplyOpts applies the options to the given spec, injecting data from the // context, client and container instance. func ApplyOpts(ctx context.Context, client Client, c *containers.Container, s *Spec, opts ...SpecOpts) error { for _, o := range opts { diff --git a/process.go b/process.go index 3a890b514..5b302569b 100644 --- a/process.go +++ b/process.go @@ -61,7 +61,7 @@ func NewExitStatus(code uint32, t time.Time, err error) *ExitStatus { } } -// ExitStatus encapsulates a process' exit status. +// ExitStatus encapsulates a process's exit status. // It is used by `Wait()` to return either a process exit code or an error type ExitStatus struct { code uint32 diff --git a/remotes/handlers_test.go b/remotes/handlers_test.go index 354c660f9..56db9837e 100644 --- a/remotes/handlers_test.go +++ b/remotes/handlers_test.go @@ -30,7 +30,7 @@ func TestContextCustomKeyPrefix(t *testing.T) { ctx = WithMediaTypeKeyPrefix(ctx, images.MediaTypeDockerSchema2Layer, "bananas") ctx = WithMediaTypeKeyPrefix(ctx, cmt, "apples") - // makes sure tha even though we've supplied some custom handling, the built-in still works + // makes sure that even though we've supplied some custom handling, the built-in still works t.Run("normal supported case", func(t *testing.T) { desc := ocispec.Descriptor{MediaType: ocispec.MediaTypeImageLayer} expected := "layer-"