Skip to content

Commit 49c09bf

Browse files
authored
Merge pull request #161 from afirth/2021-02-14-godoc
godoc: S
2 parents 7bb0c84 + 9574870 commit 49c09bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.
6666
func StrictNewVersion(v string) (*Version, error) {
6767
// Parsing here does not use RegEx in order to increase performance and reduce
6868
// allocations.

0 commit comments

Comments
 (0)