Skip to content

Commit dad4f39

Browse files
cuishuanggopherbot
authored andcommitted
cmd/go/internal: make function comment match function name
Change-Id: Ia1909a31dececd7d883ca3bddc6293dd81aee93e Reviewed-on: https://go-review.googlesource.com/c/go/+/669435 Auto-Submit: Sam Thanawalla <samthanawalla@google.com> Reviewed-by: Michael Matloob <matloob@golang.org> Reviewed-by: Sam Thanawalla <samthanawalla@google.com> Reviewed-by: Michael Matloob <matloob@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent 0028532 commit dad4f39

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cmd/go/internal/generate/generate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ var splitTestsLines = []splitTestWithLine{
218218
{"TEST2 ''", []string{"44", "''"}, 44},
219219
}
220220

221-
// TestGenerateCommandShortHand - similar to TestGenerateCommandParse,
221+
// TestGenerateCommandShortHand2 - similar to TestGenerateCommandParse,
222222
// except:
223223
// 1. if the result starts with -command, record that shorthand
224224
// before moving on to the next test.

src/cmd/go/internal/list/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ func collectDeps(p *load.Package) {
930930
sort.Strings(p.Deps)
931931
}
932932

933-
// collectDeps populates p.DepsErrors by iterating over p.Internal.Imports.
933+
// collectDepsErrors populates p.DepsErrors by iterating over p.Internal.Imports.
934934
// collectDepsErrors must be called on all of p's Imports before being called on p.
935935
func collectDepsErrors(p *load.Package) {
936936
depsErrors := make(map[*load.PackageError]bool)

src/cmd/go/internal/work/shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func (sh *Shell) moveOrCopyFile(dst, src string, perm fs.FileMode, force bool) e
178178
return sh.CopyFile(dst, src, perm, force)
179179
}
180180

181-
// copyFile is like 'cp src dst'.
181+
// CopyFile is like 'cp src dst'.
182182
func (sh *Shell) CopyFile(dst, src string, perm fs.FileMode, force bool) error {
183183
if cfg.BuildN || cfg.BuildX {
184184
sh.ShowCmd("", "cp %s %s", src, dst)

0 commit comments

Comments
 (0)