duplicated the

Signed-off-by: Jie Luo <luo612@zju.edu.cn>

typo

Signed-off-by: Jie Luo <luo612@zju.edu.cn>

fix some typos

Signed-off-by: Jie Luo <luo612@zju.edu.cn>
This commit is contained in:
Jie Luo 2016-12-21 11:03:39 +08:00
parent fb41283e49
commit ea2dd4b5d0
9 changed files with 12 additions and 12 deletions

View File

@ -3907,7 +3907,7 @@ paths:
default: false
- name: "stream"
in: "query"
description: "Stream attached streams from the the time the request was made onwards"
description: "Stream attached streams from the time the request was made onwards"
type: "boolean"
default: false
- name: "stdin"

View File

@ -12,7 +12,7 @@ import (
)
func init() {
// Reduce the size the the base fs and loopback for the tests
// Reduce the size of the base fs and loopback for the tests
defaultDataLoopbackSize = 300 * 1024 * 1024
defaultMetaDataLoopbackSize = 200 * 1024 * 1024
defaultBaseFsSize = 300 * 1024 * 1024

View File

@ -216,7 +216,7 @@ ip a show eth0
inet 192.168.1.250/24 brd 192.168.1.255 scope global eth0
```
-A traditional gateway doesn't mean much to an L3 mode Ipvlan interface since there is no broadcast traffic allowed. Because of that, the container default gateway simply point the the containers `eth0` device. See below for CLI output of `ip route` or `ip -6 route` from inside an L3 container for details.
-A traditional gateway doesn't mean much to an L3 mode Ipvlan interface since there is no broadcast traffic allowed. Because of that, the container default gateway simply points to the containers `eth0` device. See below for CLI output of `ip route` or `ip -6 route` from inside an L3 container for details.
The mode ` -o ipvlan_mode=l3` must be explicitly specified since the default ipvlan mode is `l2`.

View File

@ -627,7 +627,7 @@ func (d *Daemon) SockRequestRaw(method, endpoint string, data io.Reader, ct stri
return SockRequestRawToDaemon(method, endpoint, data, ct, d.Sock())
}
// LogFileName returns the path the the daemon's log file
// LogFileName returns the path the daemon's log file
func (d *Daemon) LogFileName() string {
return d.logFile.Name()
}

View File

@ -69,7 +69,7 @@ func (s *DockerSuite) TestExecTTY(c *check.C) {
c.Assert(bytes.Contains(buf, []byte("hello")), checker.Equals, true, check.Commentf(string(buf[:read])))
}
// Test the the TERM env var is set when -t is provided on exec
// Test the TERM env var is set when -t is provided on exec
func (s *DockerSuite) TestExecWithTERM(c *check.C) {
testRequires(c, DaemonIsLinux, SameHostDaemon)
out, _ := dockerCmd(c, "run", "-id", "busybox", "/bin/cat")

View File

@ -110,7 +110,7 @@ func (s *DockerHubPullSuite) TestPullNonExistingImage(c *check.C) {
}
// TestPullFromCentralRegistryImplicitRefParts pulls an image from the central registry and verifies
// that pulling the same image with different combinations of implicit elements of the the image
// that pulling the same image with different combinations of implicit elements of the image
// reference (tag, repository, central registry url, ...) doesn't trigger a new pull nor leads to
// multiple images.
func (s *DockerHubPullSuite) TestPullFromCentralRegistryImplicitRefParts(c *check.C) {

View File

@ -24,7 +24,7 @@ func TestDownload(t *testing.T) {
response.Body.Close()
if err != nil || string(actual) != expected {
t.Fatalf("Expected the response %q, got err:%v, response:%v, actual:%s", expected, err, response, string(actual))
t.Fatalf("Expected the response %q, got err:%q, response:%q, actual:%q", expected, err, response, string(actual))
}
}
@ -37,13 +37,13 @@ func TestDownload400Errors(t *testing.T) {
defer ts.Close()
// Expected status code = 403
if _, err := Download(ts.URL); err == nil || err.Error() != expectedError {
t.Fatalf("Expected the the error %q, got %v", expectedError, err)
t.Fatalf("Expected the error %q, got %q", expectedError, err)
}
}
func TestDownloadOtherErrors(t *testing.T) {
if _, err := Download("I'm not an url.."); err == nil || !strings.Contains(err.Error(), "unsupported protocol scheme") {
t.Fatalf("Expected an error with 'unsupported protocol scheme', got %v", err)
t.Fatalf("Expected an error with 'unsupported protocol scheme', got %q", err)
}
}
@ -59,7 +59,7 @@ func TestNewHTTPRequestError(t *testing.T) {
t.Fatal(err)
}
if err := NewHTTPRequestError(errorMessage, httpResponse); err.Error() != errorMessage {
t.Fatalf("Expected err to be %q, got %v", errorMessage, err)
t.Fatalf("Expected err to be %q, got %q", errorMessage, err)
}
}

View File

@ -59,7 +59,7 @@ function (or before doing anything with the underlying state), this ensures any
other function that is dealing with the same name will block.
When needing to modify the underlying data, use the global lock to ensure nothing
else is modfying it at the same time.
else is modifying it at the same time.
Since name lock is already in place, no reads will occur while the modification
is being performed.

View File

@ -30,7 +30,7 @@ Where:
- `--type` is the name of the interface to use
- `--name` is the subsystem that the plugin "Implements"
- `-i` is the input file containing the interface definition
- `-o` is the output file where the the generated code should go
- `-o` is the output file where the generated code should go
**Note**: The generated code will use the same package name as the one defined in the input file