forked from forks/go-ethereum
build: fix string compare for SortFunc (#29595)
This commit is contained in:
parent
98f504f69f
commit
28ccb2bbf8
1 changed files with 2 additions and 2 deletions
|
|
@ -291,8 +291,8 @@ func writeAuthors(files []string) {
|
|||
}
|
||||
}
|
||||
// Write sorted list of authors back to the file.
|
||||
slices.SortFunc(list, func(a, b string) bool {
|
||||
return strings.ToLower(a) < strings.ToLower(b)
|
||||
slices.SortFunc(list, func(a, b string) int {
|
||||
return strings.Compare(strings.ToLower(a), strings.ToLower(b))
|
||||
})
|
||||
content := new(bytes.Buffer)
|
||||
content.WriteString(authorsFileHeader)
|
||||
|
|
|
|||
Loading…
Reference in a new issue