Merge pull request #2159 from euanh/typos

Fix trivial typos
This commit is contained in:
Chris Telfer 2018-05-24 10:03:52 -04:00 committed by GitHub
commit 2db504266a
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

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

View File

@ -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