1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-01 23:15:21 -05:00

fix lint warnings

This commit is contained in:
Darien Raymond
2016-12-21 15:37:16 +01:00
parent 99c897992d
commit ceaf5d1178
31 changed files with 96 additions and 85 deletions

View File

@@ -98,7 +98,7 @@ func (b *Buffer) BytesFrom(from int) []byte {
return b.v[b.start+from : b.end]
}
// BytesFrom returns a slice of this Buffer from start to the given position.
// BytesTo returns a slice of this Buffer from start to the given position.
func (b *Buffer) BytesTo(to int) []byte {
if to < 0 {
to += b.Len()