From a2ea537a6fb4c69543ed8045337516eb61c7afe8 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 61acd8ce70..28c52b4a9c 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(`