From fb17f56852a26a5594d44863dc80dbad1d87f2b8 Mon Sep 17 00:00:00 2001 From: Paul-Armand Verhaegen Date: Thu, 10 Jun 2021 09:53:23 +0200 Subject: [PATCH] common: rename unused function with typo (#23025) This function is not used in the code base, so probably safe to do rename, or remove in its entirety, but I'm assuming the logic from the original creator still applies so rename probably better. --- common/debug.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/debug.go b/common/debug.go index 3ed8c1c796..8ad7ead548 100644 --- a/common/debug.go +++ b/common/debug.go @@ -37,8 +37,8 @@ func Report(extra ...interface{}) { fmt.Fprintln(os.Stderr, "#### BUG! PLEASE REPORT ####") } -// PrintDepricationWarning prinst the given string in a box using fmt.Println. -func PrintDepricationWarning(str string) { +// PrintDeprecationWarning prints the given string in a box using fmt.Println. +func PrintDeprecationWarning(str string) { line := strings.Repeat("#", len(str)+4) emptyLine := strings.Repeat(" ", len(str)) fmt.Printf(`