From f94d7ac81fe52bb39daec74011ba1d45ef878fd5 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Sat, 2 Apr 2022 15:53:39 -0400 Subject: [PATCH] chore: add comment for reason of unreading byte --- util/util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/util/util.go b/util/util.go index 8432851..8d8ed79 100644 --- a/util/util.go +++ b/util/util.go @@ -65,6 +65,7 @@ func DoFile(rtm *rt.Runtime, path string) error { return err } + // unread so a char won't be missing err = reader.UnreadByte() if err != nil { return err