aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorJulien Dessaux2021-12-04 00:10:30 +0100
committerJulien Dessaux2021-12-04 00:10:30 +0100
commit83e7b6505ccf1cbd0f7f7070a901e07de82f6d74 (patch)
tree51fd14e15eebd1de57a263608127ea15262ecfc3 /pkg
parentFixed standard input error handling (diff)
downloadgofunge98-83e7b6505ccf1cbd0f7f7070a901e07de82f6d74.tar.gz
gofunge98-83e7b6505ccf1cbd0f7f7070a901e07de82f6d74.tar.bz2
gofunge98-83e7b6505ccf1cbd0f7f7070a901e07de82f6d74.zip
Added documentation comment
Diffstat (limited to '')
-rw-r--r--pkg/pointer/intput-output.go3
1 files changed, 3 insertions, 0 deletions
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) {