Advance is equivalent to calling AdvanceBy(1).
()
| 89 | |
| 90 | // Advance is equivalent to calling AdvanceBy(1). |
| 91 | func (scanner *Scanner) Advance() { |
| 92 | scanner.AdvanceBy(1) |
| 93 | } |
| 94 | |
| 95 | // AdvanceBy advances the scanner by the given amount. If the amount is greater than the number of remaining runes, then |
| 96 | // it advances to the end. Cannot advance backwards. |