resources/page: Fix GoDoc comment

This commit is contained in:
George Ma 2024-03-22 15:56:10 +08:00 committed by GitHub
parent c837f36ab4
commit 27414d43a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,7 +71,7 @@ func searchPageBinary(p Page, pages Pages, less func(p1, p2 Page) bool) int {
return searchPageLinear(p, pages, i)
}
// isProbablySorted tests if the pages slice is probably sorted.
// isPagesProbablySorted tests if the pages slice is probably sorted.
func isPagesProbablySorted(pages Pages, lessFuncs ...func(p1, p2 Page) bool) func(p1, p2 Page) bool {
n := len(pages)
step := 1