forked from TrueCloudLab/frostfs-api-go
util/proto: fix doc comment
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
2aacaa6aba
commit
e348c933b7
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ func RepeatedInt32Size(field int, v []int32) (size, arraySize int) {
|
||||||
return RepeatedUInt64Size(field, convert)
|
return RepeatedUInt64Size(field, convert)
|
||||||
}
|
}
|
||||||
|
|
||||||
// varUIntSize returns length of varint byte sequence for uint64 value 'x'.
|
// VarUIntSize returns length of varint byte sequence for uint64 value 'x'.
|
||||||
func VarUIntSize(x uint64) int {
|
func VarUIntSize(x uint64) int {
|
||||||
return (bits.Len64(x|1) + 6) / 7
|
return (bits.Len64(x|1) + 6) / 7
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue