From aee45b60768ece8d3b8b3ed27204b903ef2aa9fa Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Sun, 22 Oct 2023 10:48:23 -0700 Subject: [PATCH] doc(Unscan): Clarify that it doesn't move the token --- internal/stack/scan.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/stack/scan.go b/internal/stack/scan.go index ab531ad..4b7ac84 100644 --- a/internal/stack/scan.go +++ b/internal/stack/scan.go @@ -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.