浏览代码

Merge pull request #37794 from Lihua93/fixtypos

Fix typos in comment
Sebastiaan van Stijn 6 年之前
父节点
当前提交
e33ea4fbde
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      daemon/cluster/executor/container/controller.go
  2. 1 1
      daemon/graphdriver/lcow/lcow.go
  3. 1 1
      daemon/oci_linux_test.go

+ 1 - 1
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
 		}
 

+ 1 - 1
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)

+ 1 - 1
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)