diff options
author | Julien Dessaux | 2021-12-04 00:10:30 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-12-04 00:10:30 +0100 |
commit | 83e7b6505ccf1cbd0f7f7070a901e07de82f6d74 (patch) | |
tree | 51fd14e15eebd1de57a263608127ea15262ecfc3 | |
parent | Fixed standard input error handling (diff) | |
download | gofunge98-83e7b6505ccf1cbd0f7f7070a901e07de82f6d74.tar.gz gofunge98-83e7b6505ccf1cbd0f7f7070a901e07de82f6d74.tar.bz2 gofunge98-83e7b6505ccf1cbd0f7f7070a901e07de82f6d74.zip |
Added documentation comment
Diffstat (limited to '')
-rw-r--r-- | pkg/pointer/intput-output.go | 3 |
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) { |