Fix typos in comment

Signed-off-by: Lihua Tang <lhtang@alauda.io>
This commit is contained in:
Lihua Tang 2018-09-07 13:17:32 +08:00
parent 54b62e62f7
commit 8df0b2de54
3 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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)

View File

@ -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)