1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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)