mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
build: fix string compare for SortFunc
This commit is contained in:
parent
2e06fbd409
commit
cc09616a3e
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.
|
// Write sorted list of authors back to the file.
|
||||||
slices.SortFunc(list, func(a, b string) bool {
|
slices.SortFunc(list, func(a, b string) int {
|
||||||
return strings.ToLower(a) < strings.ToLower(b)
|
return strings.Compare(strings.ToLower(a), strings.ToLower(b))
|
||||||
})
|
})
|
||||||
content := new(bytes.Buffer)
|
content := new(bytes.Buffer)
|
||||||
content.WriteString(authorsFileHeader)
|
content.WriteString(authorsFileHeader)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue