File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ const allowed string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-" +
6161// StrictNewVersion parses a given version and returns an instance of Version or
6262// an error if unable to parse the version. Only parses valid semantic versions.
6363// Performs checking that can find errors within the version.
64- // If you want to coerce a version, such as 1 or 1.2, and perse that as the 1.x
65- // releases of semver provided use the NewSemver () function.
64+ // If you want to coerce a version such as 1 or 1.2 and parse it as the 1.x
65+ // releases of semver did, use the NewVersion () function.
6666func StrictNewVersion (v string ) (* Version , error ) {
6767 // Parsing here does not use RegEx in order to increase performance and reduce
6868 // allocations.
You can’t perform that action at this time.
0 commit comments