From c34a45023f65d539f1fa42955cc04c9b1fe41a1f Mon Sep 17 00:00:00 2001 From: Sun Hongliang Date: Sat, 5 Mar 2016 00:39:15 +0800 Subject: [PATCH] fix typos in a test file and a function annotation Signed-off-by: Sun Hongliang --- api/utils_test.go | 2 +- cluster/engine.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/utils_test.go b/api/utils_test.go index 3aae407447..b22169da6c 100644 --- a/api/utils_test.go +++ b/api/utils_test.go @@ -54,7 +54,7 @@ func TestIntValueOrZero(t *testing.T) { } } -func TestInti64ValueOrZero(t *testing.T) { +func TestInt64ValueOrZero(t *testing.T) { cases := map[string]int64{ "": 0, "asdf": 0, diff --git a/cluster/engine.go b/cluster/engine.go index 74e2d82d3c..a59043950a 100644 --- a/cluster/engine.go +++ b/cluster/engine.go @@ -807,7 +807,7 @@ func (e *Engine) Create(config *ContainerConfig, name string, pullImage bool, au return container, err } -// RemoveContainer a container from the engine. +// RemoveContainer removes a container from the engine. func (e *Engine) RemoveContainer(container *Container, force, volumes bool) error { err := e.client.RemoveContainer(container.Id, force, volumes) e.CheckConnectionErr(err)