Skip to content

Commit

Permalink
fix(strutil): rename PadStart to Pad.
Browse files Browse the repository at this point in the history
  • Loading branch information
kydance committed Sep 14, 2024
1 parent 3e1ac5e commit ec15074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strutil/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func LowerFirst(s string) string {
return string(r) + s[size:]
}

// PadStart pads string on the left and right side if it's shorter than size.
// Pad pads string on the left and right side if it's shorter than size.
// Padding characters are truncated if they exceed size.
// Play: https://go.dev/play/p/NzImQq-VF8q
func Pad(source string, size int, padStr string) string {
Expand Down

0 comments on commit ec15074

Please sign in to comment.