summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Ma <164313692+availhang@users.noreply.github.com>2024-03-22 15:56:10 +0800
committerGitHub <noreply@github.com>2024-03-22 08:56:10 +0100
commit27414d43a07026fe94f0e3c5ca3e69a4b1c8f2e4 (patch)
tree98b15e7ab8804738683b0c72907c6b1af42f0c65
parentc837f36ab4f1bef581d67a115906556ac16473dc (diff)
resources/page: Fix GoDoc comment
-rw-r--r--resources/page/pages_sort_search.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/page/pages_sort_search.go b/resources/page/pages_sort_search.go
index b400f61e8..af10117cc 100644
--- a/resources/page/pages_sort_search.go
+++ b/resources/page/pages_sort_search.go
@@ -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