]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal: make function comment match function name
authorcuishuang <imcusg@gmail.com>
Fri, 2 May 2025 01:13:26 +0000 (09:13 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 6 May 2025 20:41:19 +0000 (13:41 -0700)
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>

src/cmd/go/internal/generate/generate_test.go
src/cmd/go/internal/list/list.go
src/cmd/go/internal/work/shell.go

index 90e6a1f552873048e6275f04226db41bd4a5e978..2eef917e7e275883a22974667145768ffe2e5037 100644 (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.
index d7a201a9b706f5116406b581e46e94d265ff7972..86a6b1792c5016a84d5a95525daf27cbfb2448fc 100644 (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)
index 2604b074da9f73623665af925a0832ec129ebf55..284ed26f223d7d32a304651976df039841e7ab33 100644 (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)