From cd98d3cc6af3d97b95003aa73829b8c46416737c Mon Sep 17 00:00:00 2001 From: Eric Warehime Date: Wed, 29 Mar 2023 08:31:01 -0700 Subject: [PATCH] Don't use strings.Title --- tools/debug/chopper/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/debug/chopper/main.go b/tools/debug/chopper/main.go index 000f6e1cf4..5e70292f07 100644 --- a/tools/debug/chopper/main.go +++ b/tools/debug/chopper/main.go @@ -28,6 +28,8 @@ import ( "strings" "github.com/fatih/color" + "golang.org/x/text/cases" + "golang.org/x/text/language" "github.com/algorand/go-algorand/data/basics" "github.com/algorand/go-algorand/logging/telemetryspec" @@ -131,7 +133,7 @@ type reportData struct { // report prints out stats about matched and mismatched roots or labels func report(rd reportData) { - fmt.Printf("%s in first: %d, second: %d\n", strings.Title(rd.what), rd.size1, rd.size2) + fmt.Printf("%s in first: %d, second: %d\n", cases.Title(language.English).String(rd.what), rd.size1, rd.size2) const matchedStr = "Matched %s: %d" c := yellow