1
0
mirror of https://github.com/docker/cli.git synced 2026-01-18 08:21:31 +03:00

change minor mistake of spelling

Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 693328f346
Component: cli
This commit is contained in:
allencloud
2016-12-19 14:45:48 +08:00
parent d3f8310844
commit 5821bc8a55
5 changed files with 5 additions and 5 deletions

View File

@@ -244,7 +244,7 @@ func (e secretNotFoundError) Error() string {
return fmt.Sprintf("Error: no such secret: %s", e.name)
}
// NoFound indicates that this error type is of NotFound
// NotFound indicates that this error type is of NotFound
func (e secretNotFoundError) NotFound() bool {
return true
}

View File

@@ -31,7 +31,7 @@ func TestNodeInspectNodeNotFound(t *testing.T) {
_, _, err := client.NodeInspectWithRaw(context.Background(), "unknown")
if err == nil || !IsErrNodeNotFound(err) {
t.Fatalf("expected an nodeNotFoundError error, got %v", err)
t.Fatalf("expected a nodeNotFoundError error, got %v", err)
}
}

View File

@@ -7,7 +7,7 @@ import (
"golang.org/x/net/context"
)
// Ping pings the server and return the value of the "Docker-Experimental" & "API-Version" headers
// Ping pings the server and returns the value of the "Docker-Experimental" & "API-Version" headers
func (cli *Client) Ping(ctx context.Context) (types.Ping, error) {
var ping types.Ping
req, err := cli.buildRequest("GET", fmt.Sprintf("%s/_ping", cli.basePath), nil, nil)

View File

@@ -31,7 +31,7 @@ func TestSecretInspectSecretNotFound(t *testing.T) {
_, _, err := client.SecretInspectWithRaw(context.Background(), "unknown")
if err == nil || !IsErrSecretNotFound(err) {
t.Fatalf("expected an secretNotFoundError error, got %v", err)
t.Fatalf("expected a secretNotFoundError error, got %v", err)
}
}

View File

@@ -31,7 +31,7 @@ func TestServiceInspectServiceNotFound(t *testing.T) {
_, _, err := client.ServiceInspectWithRaw(context.Background(), "unknown")
if err == nil || !IsErrServiceNotFound(err) {
t.Fatalf("expected an serviceNotFoundError error, got %v", err)
t.Fatalf("expected a serviceNotFoundError error, got %v", err)
}
}