UnreadRune pushes the previously read rune back onto the buffer. This is a wrapper function to implement the io.RuneScanner interface.
()
| 403 | // UnreadRune pushes the previously read rune back onto the buffer. |
| 404 | // This is a wrapper function to implement the io.RuneScanner interface. |
| 405 | func (r *reader) UnreadRune() error { |
| 406 | r.unread() |
| 407 | return nil |
| 408 | } |
| 409 | |
| 410 | // read reads the next rune from the reader. |
| 411 | func (r *reader) read() (ch rune, pos Pos) { |
no test coverage detected