From cb6d15a747ee7875504fdb4fc28c64c67c5f8d82 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Sat, 30 Mar 2024 04:14:55 +0000 Subject: [PATCH] cmd/compile/internal/ssa: fix typos in comment and log Change-Id: Ic872bac2989ea1c83f31456eb334e6d756ebd7d1 GitHub-Last-Rev: d4098849791d510b9a1f21c3fbce395cd75a04c3 GitHub-Pull-Request: golang/go#66612 Reviewed-on: https://go-review.googlesource.com/c/go/+/575296 LUCI-TryBot-Result: Go LUCI Reviewed-by: qiulaidongfeng <2645477756@qq.com> Reviewed-by: Keith Randall Reviewed-by: Dmitri Shuralyov Reviewed-by: Keith Randall Auto-Submit: Keith Randall --- src/cmd/compile/internal/ssa/config.go | 2 +- src/cmd/compile/internal/ssa/debug_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/compile/internal/ssa/config.go b/src/cmd/compile/internal/ssa/config.go index debcf1a0f4..d674cca009 100644 --- a/src/cmd/compile/internal/ssa/config.go +++ b/src/cmd/compile/internal/ssa/config.go @@ -130,7 +130,7 @@ type Logger interface { // some logging calls account for more than a few heap allocations. Log() bool - // Fatal reports a compiler error and exits. + // Fatalf reports a compiler error and exits. Fatalf(pos src.XPos, msg string, args ...interface{}) // Warnl writes compiler messages in the form expected by "errorcheck" tests diff --git a/src/cmd/compile/internal/ssa/debug_test.go b/src/cmd/compile/internal/ssa/debug_test.go index 2effed855c..2f21aca784 100644 --- a/src/cmd/compile/internal/ssa/debug_test.go +++ b/src/cmd/compile/internal/ssa/debug_test.go @@ -192,7 +192,7 @@ func skipSubTest(t *testing.T, tag string, basename string, gcflags string, coun if *force { testNexting(t, basename, tag, gcflags, count, moreargs...) } else { - t.Skip("skipping flaky test becaused not forced (-f)") + t.Skip("skipping flaky test because not forced (-f)") } }) } -- 2.48.1