aboutsummaryrefslogtreecommitdiff
path: root/php/step3_env.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/step3_env.php')
-rw-r--r--php/step3_env.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/php/step3_env.php b/php/step3_env.php
index a31c298..9da2fd2 100644
--- a/php/step3_env.php
+++ b/php/step3_env.php
@@ -63,7 +63,7 @@ function MAL_EVAL($ast, $env) {
// print
function MAL_PRINT($exp) {
- return _pr_str($exp, True) . "\n";
+ return _pr_str($exp, True);
}
// repl
@@ -84,7 +84,7 @@ do {
$line = mal_readline("user> ");
if ($line === NULL) { break; }
if ($line !== "") {
- print(rep($line));
+ print(rep($line) . "\n");
}
} catch (BlankException $e) {
continue;