Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: Don't use strings.Title in chopper #5239

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion tools/debug/chopper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down