From 957487093d216bedcc68c2c311c6a332a52f5397 Mon Sep 17 00:00:00 2001 From: Alastair Firth Date: Sun, 14 Feb 2021 15:49:24 +0100 Subject: [PATCH] godoc: S Fix incorrect godoc string (no `newSemver` method) + typo --- version.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version.go b/version.go index d6b9cda..4283d39 100644 --- a/version.go +++ b/version.go @@ -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.