forked from TrueCloudLab/frostfs-api-go
util/proto: fix doc comment
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>support/v2.15
parent
2aacaa6aba
commit
e348c933b7
|
@ -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 New Issue