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