Skip to content

Commit

Permalink
fix unused assign
Browse files Browse the repository at this point in the history
  • Loading branch information
logrusorgru committed Jun 1, 2016
1 parent 755c0f0 commit 3ade036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (b *Buffer) Len() int {
func (b *Buffer) Next(n int) (p []byte) {
if x := len(*b) - n; x >= 0 {
p = make([]byte, n)
n = copy(p, (*b)[x:])
copy(p, (*b)[x:])
*b = (*b)[:x]
return p
}
Expand Down

0 comments on commit 3ade036

Please sign in to comment.