Skip to content

Commit

Permalink
updating godoc comment for WithoutPreReleases func
Browse files Browse the repository at this point in the history
  • Loading branch information
SubhasmitaSw committed Mar 26, 2022
1 parent 969e6b1 commit f9e7d27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ func WithBuildTags() CompareOption {
}
}

// WithoutPreReleases modifies the version comparison to not consider pre-releases
// when comparing versions.
func WithoutPreReleases() CompareOption {
return func(c *comparer) {
c.withoutPreReleases = true
Expand Down

0 comments on commit f9e7d27

Please sign in to comment.