Skip to content

Commit 898383c

Browse files
committed
Go: Fix comment in NewSemVer for empty string
1 parent 054efa6 commit 898383c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/extractor/util/semver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func Zero() SemVer {
5252
// the empty string, this function return `nil`. Otherwise, for invalid version strings, the function
5353
// prints a message to the log and exits the process.
5454
func NewSemVer(version string) SemVer {
55-
// If the input is the empty string, return nil f
55+
// If the input is the empty string, return `nil` since we use `nil` to represent "no version".
5656
if version == "" {
5757
return nil
5858
}

0 commit comments

Comments
 (0)