Skip to content

Commit

Permalink
Use string in append directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Feb 2, 2013
1 parent 5f00ff0 commit dfde821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func appendReq(buf []byte, args []string) []byte {
buf = append(buf, '$')
buf = strconv.AppendUint(buf, uint64(len(arg)), 10)
buf = append(buf, '\r', '\n')
buf = append(buf, []byte(arg)...)
buf = append(buf, arg...)
buf = append(buf, '\r', '\n')
}
return buf
Expand Down

0 comments on commit dfde821

Please sign in to comment.