Skip to content

Commit

Permalink
fix(go): fix comment error, should be 1-5 byte (#1353)
Browse files Browse the repository at this point in the history
fix go comment error

Co-authored-by: hubo <[email protected]>
  • Loading branch information
bowin and hubo authored Jan 23, 2024
1 parent 983bc95 commit ad19645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/fury/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (b *ByteBuffer) PutInt32(index int, value int32) {
binary.LittleEndian.PutUint32(b.data[index:], uint32(value))
}

// WriteVarInt32 WritePositiveVarInt writes a 1-9 byte int, returns the number of bytes written.
// WriteVarInt32 WritePositiveVarInt writes a 1-5 byte int, returns the number of bytes written.
func (b *ByteBuffer) WriteVarInt32(value int32) int8 {
if value>>7 == 0 {
b.grow(1)
Expand Down

0 comments on commit ad19645

Please sign in to comment.