Просмотр исходного кода

Fix docs typo and wrong word

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
Zhang Wei 9 лет назад
Родитель
Сommit
725b7c9d43
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      api/types/types.go
  2. 1 1
      man/docker-cp.1.md

+ 1 - 1
api/types/types.go

@@ -359,7 +359,7 @@ type NetworkResource struct {
 	Options    map[string]string
 }
 
-//EndpointResource contains network resources allocated and usd for a container in a network
+// EndpointResource contains network resources allocated and used for a container in a network
 type EndpointResource struct {
 	EndpointID  string
 	MacAddress  string

+ 1 - 1
man/docker-cp.1.md

@@ -121,7 +121,7 @@ name if one exists. For example, this command:
 
 If `/test` does not exist on the local machine, it will be created as a file
 with the contents of `/tmp/foo/myfile.txt` from the container. If `/test`
-exists as a file, it will be overwritten. Lastly, if `/tmp` exists as a
+exists as a file, it will be overwritten. Lastly, if `/test` exists as a
 directory, the file will be copied to `/test/myfile.txt`.
 
 Next, suppose you want to copy a file or folder into a container. For example,