aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources
diff options
context:
space:
mode:
authorGeorge Ma <[email protected]>2024-03-22 15:56:10 +0800
committerGitHub <[email protected]>2024-03-22 08:56:10 +0100
commit27414d43a07026fe94f0e3c5ca3e69a4b1c8f2e4 (patch)
tree98b15e7ab8804738683b0c72907c6b1af42f0c65 /resources
parentc837f36ab4f1bef581d67a115906556ac16473dc (diff)
downloadhugo-27414d43a07026fe94f0e3c5ca3e69a4b1c8f2e4.tar.gz
hugo-27414d43a07026fe94f0e3c5ca3e69a4b1c8f2e4.zip
resources/page: Fix GoDoc comment
Diffstat (limited to 'resources')
-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