Skip to content

Commit

Permalink
doc(Unscan): Clarify that it doesn't move the token
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Oct 22, 2023
1 parent 6396c7f commit aee45b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/stack/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ func (s *scanner) Scan() bool {
return s.Scanner.Scan()
}

// Unscan moves the scanner back one token.
// Unscan stops the scanner from advancing its position
// for the next Scan.
//
// Bytes and Text will return the same token after next Scan
// that they do right now.
Expand Down

0 comments on commit aee45b6

Please sign in to comment.