cmd/go/internal/modload: fix doc comment

Change-Id: Ib7f47c7fc2fa5db3adbe51612b1e7a9bb49647b5
Reviewed-on: https://go-review.googlesource.com/c/go/+/411105
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Russ Cox 2022-06-09 08:51:11 -04:00
parent 85d7bab91d
commit 751cae8855

View file

@ -33,24 +33,23 @@ import (
// The version must take one of the following forms:
//
// - the literal string "latest", denoting the latest available, allowed
//
// tagged version, with non-prereleases preferred over prereleases.
// If there are no tagged versions in the repo, latest returns the most
// recent commit.
//
// - the literal string "upgrade", equivalent to "latest" except that if
//
// current is a newer version, current will be returned (see below).
//
// - the literal string "patch", denoting the latest available tagged version
//
// with the same major and minor number as current (see below).
//
// - v1, denoting the latest available tagged version v1.x.x.
// - v1.2, denoting the latest available tagged version v1.2.x.
// - v1.2.3, a semantic version string denoting that tagged version.
// - <v1.2.3, <=v1.2.3, >v1.2.3, >=v1.2.3,
//
// - v1.2, denoting the latest available tagged version v1.2.x.
//
// - v1.2.3, a semantic version string denoting that tagged version.
//
// - <v1.2.3, <=v1.2.3, >v1.2.3, >=v1.2.3,
// denoting the version closest to the target and satisfying the given operator,
// with non-prereleases preferred over prereleases.
//