Replace utils Min, Max with builtin min, max

This commit is contained in:
Marcel Meyer authored and Junegunn Choi committed 2025-12-23 09:14:33 +09:00
1 parent 603240122e
commit 14b5e1d88c
13 files changed
+93 -196

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ func (chars *Chars) TrailingWhitespaces() int {
func (chars *Chars) TrimTrailingWhitespaces(maxIndex int) {
whitespaces := chars.TrailingWhitespaces()
end := len(chars.slice) - whitespaces
chars.slice = chars.slice[0:Max(end, maxIndex)]
chars.slice = chars.slice[0:max(end, maxIndex)]
}
func (chars *Chars) TrimSuffix(runes []rune) {