From 8df0b2de5427f535c8d85157196388d8eef61ff6 Mon Sep 17 00:00:00 2001 From: Lihua Tang Date: Fri, 7 Sep 2018 13:17:32 +0800 Subject: [PATCH] Fix typos in comment Signed-off-by: Lihua Tang --- daemon/cluster/executor/container/controller.go | 2 +- daemon/graphdriver/lcow/lcow.go | 2 +- daemon/oci_linux_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/cluster/executor/container/controller.go b/daemon/cluster/executor/container/controller.go index 8d070799f3..5552b13328 100644 --- a/daemon/cluster/executor/container/controller.go +++ b/daemon/cluster/executor/container/controller.go @@ -527,7 +527,7 @@ func (r *controller) Logs(ctx context.Context, publisher exec.LogPublisher, opti } if msg.Err != nil { - // the defered cancel closes the adapter's log stream + // the deferred cancel closes the adapter's log stream return msg.Err } diff --git a/daemon/graphdriver/lcow/lcow.go b/daemon/graphdriver/lcow/lcow.go index 8a89cc12d0..97e73889ce 100644 --- a/daemon/graphdriver/lcow/lcow.go +++ b/daemon/graphdriver/lcow/lcow.go @@ -673,7 +673,7 @@ func (d *Driver) Get(id, mountLabel string) (containerfs.ContainerFS, error) { title := fmt.Sprintf("lcowdriver: get: %s", id) logrus.Debugf(title) - // Generate the mounts needed for the defered operation. + // Generate the mounts needed for the deferred operation. disks, err := d.getAllMounts(id) if err != nil { logrus.Debugf("%s failed to get all layer details for %s: %s", title, d.dir(id), err) diff --git a/daemon/oci_linux_test.go b/daemon/oci_linux_test.go index bb296a8703..7b31970aae 100644 --- a/daemon/oci_linux_test.go +++ b/daemon/oci_linux_test.go @@ -35,7 +35,7 @@ func TestTmpfsDevShmNoDupMount(t *testing.T) { }, } - // Mimick the code flow of daemon.createSpec(), enough to reproduce the issue + // Mimic the code flow of daemon.createSpec(), enough to reproduce the issue ms, err := d.setupMounts(c) assert.Check(t, err)