Skip to content

Commit

Permalink
godoc: S
Browse files Browse the repository at this point in the history
Fix incorrect godoc string (no `newSemver` method)
+ typo
  • Loading branch information
afirth committed Feb 14, 2021
1 parent 7bb0c84 commit 9574870
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 9574870

Please sign in to comment.