From 83e7b6505ccf1cbd0f7f7070a901e07de82f6d74 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 4 Dec 2021 00:10:30 +0100 Subject: Added documentation comment --- pkg/pointer/intput-output.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/pointer/intput-output.go b/pkg/pointer/intput-output.go index 6a2423a..1251698 100644 --- a/pkg/pointer/intput-output.go +++ b/pkg/pointer/intput-output.go @@ -5,6 +5,9 @@ import ( "os" ) +// We keep the last input char to handle a pain point in the funge-98 spec : +// when reading from the decimal input you need to read until you encounter a +// non numeric char, but not drop it var defaultInputLastChar *int = nil func DefaultCharacterInput() (int, error) { -- cgit v1.2.3