浏览代码

Merge pull request #2159 from euanh/typos

Fix trivial typos
Chris Telfer 7 年之前
父节点
当前提交
2db504266a
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      libnetwork/ipam/allocator.go
  2. 1 1
      libnetwork/types/types.go
  3. 1 1
      libnetwork/types/types_test.go

+ 1 - 1
libnetwork/ipam/allocator.go

@@ -389,7 +389,7 @@ func (a *Allocator) getPredefinedPool(as string, ipV6 bool) (*net.IPNet, error)
 	}
 	}
 
 
 	if as != localAddressSpace && as != globalAddressSpace {
 	if as != localAddressSpace && as != globalAddressSpace {
-		return nil, types.NotImplementedErrorf("no default pool availbale for non-default addresss spaces")
+		return nil, types.NotImplementedErrorf("no default pool available for non-default address spaces")
 	}
 	}
 
 
 	aSpace, err := a.getAddrSpace(as)
 	aSpace, err := a.getAddrSpace(as)

+ 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 {

+ 1 - 1
libnetwork/types/types_test.go

@@ -216,7 +216,7 @@ func TestCompareIPMask(t *testing.T) {
 	}
 	}
 }
 }
 
 
-func TestUtilGetHostPortionIP(t *testing.T) {
+func TestUtilGetHostPartIP(t *testing.T) {
 	input := []struct {
 	input := []struct {
 		ip   net.IP
 		ip   net.IP
 		mask net.IPMask
 		mask net.IPMask