From d4098849791d510b9a1f21c3fbce395cd75a04c3 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Sat, 30 Mar 2024 12:09:59 +0800 Subject: [PATCH] cmd/compile/internal/ssa: fix typos in comment and log Signed-off-by: guoguangwu --- 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 debcf1a0f465a1..d674cca0099f29 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 2effed855c4e67..2f21aca784ac8d 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)") } }) }