From 07a9f5a63080dec6a80c69c484ad9667e70d0069 Mon Sep 17 00:00:00 2001 From: Christian Rebischke Date: Sat, 18 Dec 2021 15:16:53 +0100 Subject: [PATCH] fix: spelling in comments --- packageurl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packageurl.go b/packageurl.go index 0afe02c..997e744 100644 --- a/packageurl.go +++ b/packageurl.go @@ -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 @@ -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, "&") }