mirror of https://github.com/docker/docs.git
fix typos in a test file and a function annotation
Signed-off-by: Sun Hongliang <allen.sun@daocloud.io>
This commit is contained in:
parent
313db93c08
commit
c34a45023f
|
@ -54,7 +54,7 @@ func TestIntValueOrZero(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestInti64ValueOrZero(t *testing.T) {
|
func TestInt64ValueOrZero(t *testing.T) {
|
||||||
cases := map[string]int64{
|
cases := map[string]int64{
|
||||||
"": 0,
|
"": 0,
|
||||||
"asdf": 0,
|
"asdf": 0,
|
||||||
|
|
|
@ -807,7 +807,7 @@ func (e *Engine) Create(config *ContainerConfig, name string, pullImage bool, au
|
||||||
return container, err
|
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 {
|
func (e *Engine) RemoveContainer(container *Container, force, volumes bool) error {
|
||||||
err := e.client.RemoveContainer(container.Id, force, volumes)
|
err := e.client.RemoveContainer(container.Id, force, volumes)
|
||||||
e.CheckConnectionErr(err)
|
e.CheckConnectionErr(err)
|
||||||
|
|
Loading…
Reference in New Issue