Selaa lähdekoodia

Merge pull request #2159 from euanh/typos

Fix trivial typos
Chris Telfer 7 vuotta sitten
vanhempi
commit
2db504266a
3 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  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 {
-		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)

+ 1 - 1
libnetwork/types/types.go

@@ -145,7 +145,7 @@ func (p *PortBinding) String() string {
 	return ret
 }
 
-// FromString reads the TransportPort structure from string
+// FromString reads the PortBinding structure from string
 func (p *PortBinding) FromString(s string) error {
 	ps := strings.Split(s, "/")
 	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 {
 		ip   net.IP
 		mask net.IPMask