We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NewSemVer
1 parent 054efa6 commit 898383cCopy full SHA for 898383c
go/extractor/util/semver.go
@@ -52,7 +52,7 @@ func Zero() SemVer {
52
// the empty string, this function return `nil`. Otherwise, for invalid version strings, the function
53
// prints a message to the log and exits the process.
54
func NewSemVer(version string) SemVer {
55
- // If the input is the empty string, return nil f
+ // If the input is the empty string, return `nil` since we use `nil` to represent "no version".
56
if version == "" {
57
return nil
58
}
0 commit comments