Skip to content

Commit

Permalink
fix: spelling in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shibumi authored and ashcrow committed Feb 3, 2022
1 parent 3245c8b commit 07a9f5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packageurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func NewPackageURL(purlType, namespace, name, version string,
}
}

// ToString returns the human readable instance of the PackageURL structure.
// ToString returns the human-readable instance of the PackageURL structure.
// This is the literal purl as defined by the spec.
func (p *PackageURL) ToString() string {
// Start with the type and a colon
Expand All @@ -181,7 +181,7 @@ func (p *PackageURL) ToString() string {
for _, q := range p.Qualifiers {
qualifiers = append(qualifiers, q.String())
}
// If there one or more key=value pairs then append on the package url
// If there are one or more key=value pairs, append on the package url
if len(qualifiers) != 0 {
purl = purl + "?" + strings.Join(qualifiers, "&")
}
Expand Down

0 comments on commit 07a9f5a

Please sign in to comment.