]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
resources/page: Fix GoDoc comment
authorGeorge Ma <164313692+availhang@users.noreply.github.com>
Fri, 22 Mar 2024 07:56:10 +0000 (15:56 +0800)
committerGitHub <noreply@github.com>
Fri, 22 Mar 2024 07:56:10 +0000 (08:56 +0100)
resources/page/pages_sort_search.go

index b400f61e8717c0a8a341f47ceb10c804ebdc02e7..af10117cc435cb9c5896e9d0af57c95a58cd232b 100644 (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