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>
This commit is contained in:
cuishuang 2025-05-02 09:13:26 +08:00 committed by Gopher Robot
parent 0028532118
commit dad4f39971
3 changed files with 3 additions and 3 deletions

View file

@ -218,7 +218,7 @@ var splitTestsLines = []splitTestWithLine{
{"TEST2 ''", []string{"44", "''"}, 44},
}
// TestGenerateCommandShortHand - similar to TestGenerateCommandParse,
// TestGenerateCommandShortHand2 - similar to TestGenerateCommandParse,
// except:
// 1. if the result starts with -command, record that shorthand
// before moving on to the next test.

View file

@ -930,7 +930,7 @@ func collectDeps(p *load.Package) {
sort.Strings(p.Deps)
}
// collectDeps populates p.DepsErrors by iterating over p.Internal.Imports.
// collectDepsErrors populates p.DepsErrors by iterating over p.Internal.Imports.
// collectDepsErrors must be called on all of p's Imports before being called on p.
func collectDepsErrors(p *load.Package) {
depsErrors := make(map[*load.PackageError]bool)

View file

@ -178,7 +178,7 @@ func (sh *Shell) moveOrCopyFile(dst, src string, perm fs.FileMode, force bool) e
return sh.CopyFile(dst, src, perm, force)
}
// copyFile is like 'cp src dst'.
// CopyFile is like 'cp src dst'.
func (sh *Shell) CopyFile(dst, src string, perm fs.FileMode, force bool) error {
if cfg.BuildN || cfg.BuildX {
sh.ShowCmd("", "cp %s %s", src, dst)