This commit is contained in:
Gokcehan committed 2016-11-18 22:41:18 +03:00
1 parent 697a05cdd0
commit 586938fa70
1 file changed
-2
-2
View File
@@ -62,7 +62,6 @@ func newScanner(r io.Reader) *Scanner {
func (s *Scanner) next() { func (s *Scanner) next() {
if s.off+1 < len(s.buf) { if s.off+1 < len(s.buf) {
// TODO: unicode
s.off++ s.off++
s.chr = s.buf[s.off] s.chr = s.buf[s.off]
return return
@@ -75,7 +74,6 @@ func (s *Scanner) next() {
func (s *Scanner) peek() byte { func (s *Scanner) peek() byte {
if s.off+1 < len(s.buf) { if s.off+1 < len(s.buf) {
// TODO: unicode
return s.buf[s.off+1] return s.buf[s.off+1]
} }