Skip to content

Commit

Permalink
Merge pull request #2 from detectify/fix/lint
Browse files Browse the repository at this point in the history
Linting
  • Loading branch information
Roberto Giachetta authored Jul 23, 2021
2 parents d2ed2de + c177f9f commit 69e890d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions domain/func.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func Contains(first, second string) bool {
return firstD.Contains(secondD)
}

// Contains indicates whether this domain matches another domain or is a parent of another domain
// IsParentOf indicates whether this domain matches another domain or is a parent of another domain
//
// Returns false if either domain names are empty or invalid.
func IsParentOf(first, second string) bool {
Expand Down Expand Up @@ -184,7 +184,7 @@ func IsSubdomainOf(first, second string) bool {
return firstD.IsSubdomainOf(secondD)
}

// IsSubdomainOf indicates whether the first domain is an immediate subdomain of the second domain
// IsImmediateSubdomainOf indicates whether the first domain is an immediate subdomain of the second domain
//
// Returns false if either domain names are empty or invalid.
func IsImmediateSubdomainOf(first, second string) bool {
Expand Down
2 changes: 1 addition & 1 deletion validate/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ func IP(s string) error {
return ip.Validate(s)
}

// IP determines whether a string is a valid, non-reserved IP address
// NonReservedIP determines whether a string is a valid, non-reserved IP address
func NonReservedIP(s string) error {
return ip.ValidateNonReserved(s)
}

0 comments on commit 69e890d

Please sign in to comment.