summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index f9f125b..276f732 100644
--- a/main.go
+++ b/main.go
@@ -46,7 +46,7 @@ func repl(interp Interpreter, in io.Reader) (err error) {
res, err := interp.Eval(text + "\n")
switch {
case err == nil:
- if !res.IsNil() {
+ if res.IsValid() {
fmt.Println(": ", res)
}
text, prompt = "", "> "