Browse Source

scanner.Scanner: rename NextLine() to NewLine()

Signed-off-by: Alejandro Mery <amery@geeks.cl>
v0.2.x
Alejandro Mery 10 years ago
parent
commit
538ebfe37b
  1. 4
      scanner/scanner.go

4
scanner/scanner.go

@ -74,8 +74,8 @@ func (l *Scanner) Skip() {
l.runes = 0
}
// Count NewLine
func (l *Scanner) NextLine() {
// NewLine accounts a line break in the position of the cursor
func (l *Scanner) NewLine() {
l.cursor.Line++
l.cursor.Column = 1
}

Loading…
Cancel
Save