chore: make function comment match function name (#6607)

This commit is contained in:
NinaLua
2025-03-07 16:45:47 +08:00
committed by GitHub
parent 61249d8dde
commit 271505717e
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/storage/types"
)
// firstInvalidIndex find the first index the failed lessThanOrEqualToFn function's requirement.
// FirstInvalidIndex find the first index the failed lessThanOrEqualToFn function's requirement.
func FirstInvalidIndex(bytes []byte, lessThanOrEqualToFn func(key types.NeedleId, offset types.Offset, size types.Size) (bool, error)) (int, error) {
left, right := 0, len(bytes)/types.NeedleMapEntrySize-1
index := right + 1