From 004efe5991341233c5ba2a1a7639da0e95796d2a Mon Sep 17 00:00:00 2001 From: bin liu Date: Wed, 22 Jun 2016 14:23:32 +0800 Subject: [PATCH] fix typos Signed-off-by: bin liu --- containerd-shim/console.go | 2 +- runtime/runtime.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/containerd-shim/console.go b/containerd-shim/console.go index 699c085..1d3262d 100644 --- a/containerd-shim/console.go +++ b/containerd-shim/console.go @@ -9,7 +9,7 @@ import ( "unsafe" ) -// NewConsole returns an initalized console that can be used within a container by copying bytes +// NewConsole returns an initialized console that can be used within a container by copying bytes // from the master side to the slave that is attached as the tty for the container's init process. func newConsole(uid, gid int) (*os.File, string, error) { master, err := os.OpenFile("/dev/ptmx", syscall.O_RDWR|syscall.O_NOCTTY|syscall.O_CLOEXEC, 0) diff --git a/runtime/runtime.go b/runtime/runtime.go index 55520fd..88044eb 100644 --- a/runtime/runtime.go +++ b/runtime/runtime.go @@ -11,7 +11,7 @@ var ( // ErrContainerExited is returned when access to an exited // container is attempted ErrContainerExited = errors.New("containerd: container has exited") - // ErrProcessNotExited is returned when trying to retrive the exit + // ErrProcessNotExited is returned when trying to retrieve the exit // status of an alive process ErrProcessNotExited = errors.New("containerd: process has not exited") // ErrContainerNotStarted is returned when a container fails to