diff options
| author | NinaLua <168073229+NinaLua@users.noreply.github.com> | 2025-03-07 16:45:47 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-07 00:45:47 -0800 |
| commit | 271505717e8292e909b2daf7d63c56babdb17e00 (patch) | |
| tree | 2f488883fd257430108d62ae9c18aa4fe7735527 /weed/storage | |
| parent | 61249d8dde3761473633a5dc667248f8e5e2a69a (diff) | |
| download | seaweedfs-271505717e8292e909b2daf7d63c56babdb17e00.tar.xz seaweedfs-271505717e8292e909b2daf7d63c56babdb17e00.zip | |
chore: make function comment match function name (#6607)
Diffstat (limited to 'weed/storage')
| -rw-r--r-- | weed/storage/idx/binary_search.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/idx/binary_search.go b/weed/storage/idx/binary_search.go index 93bdfd7d8..9f1dcef40 100644 --- a/weed/storage/idx/binary_search.go +++ b/weed/storage/idx/binary_search.go @@ -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 |
