]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal: make function comments match function names
authorcuishuang <imcusg@gmail.com>
Sat, 16 Aug 2025 15:22:19 +0000 (23:22 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 19 Aug 2025 19:45:29 +0000 (12:45 -0700)
Change-Id: I2ebadb87a4f60487c8f720930a72bc5ef953d7cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/696695
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/compile/internal/loopvar/loopvar_test.go
src/cmd/compile/internal/pgoir/irgraph.go
src/cmd/compile/internal/ssa/func_test.go

index b19962f0fd40233d41f3a03d4c82197ff434cae0..0265dd06eec78870c1e50302ac6e8a5c92bf4ed8 100644 (file)
@@ -50,7 +50,7 @@ var cases = []testcase{
        {"1", "", 0, []string{"for_nested.go"}},
 }
 
-// TestLoopVar checks that the GOEXPERIMENT and debug flags behave as expected.
+// TestLoopVarGo1_21 checks that the GOEXPERIMENT and debug flags behave as expected.
 func TestLoopVarGo1_21(t *testing.T) {
        switch runtime.GOOS {
        case "linux", "darwin":
index 914a4da8b5c9f29676803d4ba663f8535b855e93..e879d438a620130a7bac3236f58b77ad40bdad8e 100644 (file)
@@ -158,7 +158,7 @@ func New(profileFile string) (*Profile, error) {
        }, nil
 }
 
-// initializeIRGraph builds the IRGraph by visiting all the ir.Func in decl list
+// createIRGraph builds the IRGraph by visiting all the ir.Func in decl list
 // of a package.
 func createIRGraph(namedEdgeMap pgo.NamedEdgeMap) *IRGraph {
        g := &IRGraph{
index 6923aaa58ecadd4745f95c1648aaee6805015189..a1e639e0486b6276ee13e8f9a034741180f1876b 100644 (file)
@@ -470,7 +470,7 @@ func opcodeMap(f *Func) map[Op]int {
        return m
 }
 
-// opcodeCounts checks that the number of opcodes listed in m agree with the
+// checkOpcodeCounts checks that the number of opcodes listed in m agree with the
 // number of opcodes that appear in the function.
 func checkOpcodeCounts(t *testing.T, f *Func, m map[Op]int) {
        n := opcodeMap(f)