mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
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:
parent
0028532118
commit
dad4f39971
3 changed files with 3 additions and 3 deletions
|
@ -218,7 +218,7 @@ var splitTestsLines = []splitTestWithLine{
|
||||||
{"TEST2 ''", []string{"44", "''"}, 44},
|
{"TEST2 ''", []string{"44", "''"}, 44},
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestGenerateCommandShortHand - similar to TestGenerateCommandParse,
|
// TestGenerateCommandShortHand2 - similar to TestGenerateCommandParse,
|
||||||
// except:
|
// except:
|
||||||
// 1. if the result starts with -command, record that shorthand
|
// 1. if the result starts with -command, record that shorthand
|
||||||
// before moving on to the next test.
|
// before moving on to the next test.
|
||||||
|
|
|
@ -930,7 +930,7 @@ func collectDeps(p *load.Package) {
|
||||||
sort.Strings(p.Deps)
|
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.
|
// collectDepsErrors must be called on all of p's Imports before being called on p.
|
||||||
func collectDepsErrors(p *load.Package) {
|
func collectDepsErrors(p *load.Package) {
|
||||||
depsErrors := make(map[*load.PackageError]bool)
|
depsErrors := make(map[*load.PackageError]bool)
|
||||||
|
|
|
@ -178,7 +178,7 @@ func (sh *Shell) moveOrCopyFile(dst, src string, perm fs.FileMode, force bool) e
|
||||||
return sh.CopyFile(dst, src, perm, force)
|
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 {
|
func (sh *Shell) CopyFile(dst, src string, perm fs.FileMode, force bool) error {
|
||||||
if cfg.BuildN || cfg.BuildX {
|
if cfg.BuildN || cfg.BuildX {
|
||||||
sh.ShowCmd("", "cp %s %s", src, dst)
|
sh.ShowCmd("", "cp %s %s", src, dst)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue