Skip to content

Commit

Permalink
Merge pull request #161 from afirth/2021-02-14-godoc
Browse files Browse the repository at this point in the history
godoc: S
  • Loading branch information
mattfarina committed Mar 4, 2021
2 parents 7bb0c84 + 9574870 commit 49c09bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions version.go
Expand Up @@ -61,8 +61,8 @@ const allowed string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-" +
// StrictNewVersion parses a given version and returns an instance of Version or
// an error if unable to parse the version. Only parses valid semantic versions.
// Performs checking that can find errors within the version.
// If you want to coerce a version, such as 1 or 1.2, and perse that as the 1.x
// releases of semver provided use the NewSemver() function.
// If you want to coerce a version such as 1 or 1.2 and parse it as the 1.x
// releases of semver did, use the NewVersion() function.
func StrictNewVersion(v string) (*Version, error) {
// Parsing here does not use RegEx in order to increase performance and reduce
// allocations.
Expand Down

0 comments on commit 49c09bf

Please sign in to comment.