Browse code

Fix typos in comment

Signed-off-by: Lihua Tang <lhtang@alauda.io>

Lihua Tang authored on 2018/09/07 14:17:32
Showing 3 changed files
... ...
@@ -527,7 +527,7 @@ func (r *controller) Logs(ctx context.Context, publisher exec.LogPublisher, opti
527 527
 		}
528 528
 
529 529
 		if msg.Err != nil {
530
-			// the defered cancel closes the adapter's log stream
530
+			// the deferred cancel closes the adapter's log stream
531 531
 			return msg.Err
532 532
 		}
533 533
 
... ...
@@ -673,7 +673,7 @@ func (d *Driver) Get(id, mountLabel string) (containerfs.ContainerFS, error) {
673 673
 	title := fmt.Sprintf("lcowdriver: get: %s", id)
674 674
 	logrus.Debugf(title)
675 675
 
676
-	// Generate the mounts needed for the defered operation.
676
+	// Generate the mounts needed for the deferred operation.
677 677
 	disks, err := d.getAllMounts(id)
678 678
 	if err != nil {
679 679
 		logrus.Debugf("%s failed to get all layer details for %s: %s", title, d.dir(id), err)
... ...
@@ -35,7 +35,7 @@ func TestTmpfsDevShmNoDupMount(t *testing.T) {
35 35
 		},
36 36
 	}
37 37
 
38
-	// Mimick the code flow of daemon.createSpec(), enough to reproduce the issue
38
+	// Mimic the code flow of daemon.createSpec(), enough to reproduce the issue
39 39
 	ms, err := d.setupMounts(c)
40 40
 	assert.Check(t, err)
41 41