aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-03-30 13:26:00 +0200
committerDimitri Sokolyuk <demon@dim13.org>2018-03-30 13:26:00 +0200
commitf3be33067de33a8ec039c6e9da70383b6d255329 (patch)
treee53f0cb44466698be70191a882df7c0027166fe2
parentc45b522b73ea7876ba80abdce4a764f7c95ec83b (diff)
unexport
-rw-r--r--repl/repl.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/repl/repl.go b/repl/repl.go
index 4322fb4..8b7abb4 100644
--- a/repl/repl.go
+++ b/repl/repl.go
@@ -11,7 +11,7 @@ import (
"monkey/parser"
)
-const PROMPT = ">> "
+const prompt = ">> "
func Start(in io.Reader, out io.Writer) {
scanner := bufio.NewScanner(in)
@@ -19,7 +19,7 @@ func Start(in io.Reader, out io.Writer) {
macroEnv := object.NewEnvironment()
for {
- fmt.Print(PROMPT)
+ fmt.Print(prompt)
scanned := scanner.Scan()
if !scanned {
return