Skip to content

Commit 5517a71

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some comments
Change-Id: Ic8faee52db43f1c669dbc8d141eeda3c7093bd29 Reviewed-on: https://go-review.googlesource.com/c/mod/+/712901 Auto-Submit: Sean Liao <sean@liao.dev> Reviewed-by: Sean Liao <sean@liao.dev> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
1 parent b6cdd1a commit 5517a71

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modfile/read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (x *FileSyntax) Span() (start, end Position) {
9494
// line, the new line is added at the end of the block containing hint,
9595
// extracting hint into a new block if it is not yet in one.
9696
//
97-
// If the hint is non-nil buts its first token does not match,
97+
// If the hint is non-nil but its first token does not match,
9898
// the new line is added after the block containing hint
9999
// (or hint itself, if not in a block).
100100
//

module/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func modPathOK(r rune) bool {
261261

262262
// importPathOK reports whether r can appear in a package import path element.
263263
//
264-
// Import paths are intermediate between module paths and file paths: we allow
264+
// Import paths are intermediate between module paths and file paths: we
265265
// disallow characters that would be confusing or ambiguous as arguments to
266266
// 'go get' (such as '@' and ' ' ), but allow certain characters that are
267267
// otherwise-unambiguous on the command line and historically used for some

semver/semver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ func IsValid(v string) bool {
4545

4646
// Canonical returns the canonical formatting of the semantic version v.
4747
// It fills in any missing .MINOR or .PATCH and discards build metadata.
48-
// Two semantic versions compare equal only if their canonical formattings
49-
// are identical strings.
48+
// Two semantic versions compare equal only if their canonical formatting
49+
// is an identical string.
5050
// The canonical invalid semantic version is the empty string.
5151
func Canonical(v string) string {
5252
p, ok := parse(v)

0 commit comments

Comments
 (0)