瀏覽代碼

types/types: Correct docstring typo for (PortBinding)FromString

Signed-off-by: Euan Harris <euan.harris@docker.com>
Euan Harris 7 年之前
父節點
當前提交
35f505210b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libnetwork/types/types.go

+ 1 - 1
libnetwork/types/types.go

@@ -145,7 +145,7 @@ func (p *PortBinding) String() string {
 	return ret
 	return ret
 }
 }
 
 
-// FromString reads the TransportPort structure from string
+// FromString reads the PortBinding structure from string
 func (p *PortBinding) FromString(s string) error {
 func (p *PortBinding) FromString(s string) error {
 	ps := strings.Split(s, "/")
 	ps := strings.Split(s, "/")
 	if len(ps) != 3 {
 	if len(ps) != 3 {