You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
kostya-sh
changed the title
bytes.Count(buf, []byte {}) return number of runes in buf + 1
bytes: bytes.Count(buf, []byte {}) return number of runes in buf + 1
Jan 22, 2015
I believe
bytes.Count(buf, []byte {})
should returnlen(buf) + 1
. Currently it returnsutf8.RuneCount(s) + 1
Demo to show the problem: http://play.golang.org/p/xjQJGlmuOJ
The text was updated successfully, but these errors were encountered: