From 2aac0b5b64957414ca79c10b62d43f4c0ddbd9af Mon Sep 17 00:00:00 2001 From: qinchenghan Date: Mon, 25 Aug 2025 16:23:48 +0800 Subject: [PATCH] [bugfix] minor typo fix --- src/cmd/compile/internal/base/debug.go | 4 ++-- src/cmd/compile/internal/ssa/layout_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd/compile/internal/base/debug.go b/src/cmd/compile/internal/base/debug.go index 207685558..bb4df187c 100644 --- a/src/cmd/compile/internal/base/debug.go +++ b/src/cmd/compile/internal/base/debug.go @@ -56,8 +56,8 @@ type DebugFlags struct { PGOInlineBudget int `help:"inline budget for hot functions" concurrent:"ok"` PGODevirtualize int `help:"enable profile-guided devirtualization" concurrent:"ok"` CFGODebug int `help:"debug continuous feature guided optimizations"` - CFGOInline int `help:"enable continuous feature guided inlining: concurrent:"ok"` - CFGOInlineCDFThreshold string `help:"cumulative threshold percentage for determining call sites as hot candidates for inlining: concurrent:"ok"` + CFGOInline int `help:"enable continuous feature guided inlining" concurrent:"ok"` + CFGOInlineCDFThreshold string `help:"cumulative threshold percentage for determining call sites as hot candidates for inlining" concurrent:"ok"` CFGOInlineBudget int `help:"inline budget for hot functions" concurrent:"ok"` CFGODevirtualize int `help:"enable continuous feature guided devirtualization" concurrent:"ok"` WrapGlobalMapDbg int `help:"debug trace output for global map init wrapping"` diff --git a/src/cmd/compile/internal/ssa/layout_test.go b/src/cmd/compile/internal/ssa/layout_test.go index d5cbd1571..e9a2057b5 100644 --- a/src/cmd/compile/internal/ssa/layout_test.go +++ b/src/cmd/compile/internal/ssa/layout_test.go @@ -33,7 +33,7 @@ func TestLayoutPredicatedBranch(t *testing.T) { for i, b := range fun.f.Blocks { if b.ID != expectedOrder[i] { - t.Errof("block layout order want %d, got %d", expectedOrder[i], b.ID) + t.Errorf("block layout order want %d, got %d", expectedOrder[i], b.ID) } } } -- Gitee