Fix `puts` in `mruby-print` on no argument; 0e9bd248

`puts` should print newline when called without arguments.
parent 9571a4c0
......@@ -80,6 +80,9 @@ mrb_puts(mrb_state *mrb, mrb_value self)
printstr(mrb, "\n", 1);
}
}
if (argc == 0) {
printstr(mrb, "\n", 1);
}
return mrb_nil_value();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment