diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-07-31 06:57:05 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-07-31 06:57:05 +0900 |
| commit | 1517d77e936ed5bbe176eb78c6f3308ef98a6047 (patch) | |
| tree | c488dd1c0f4341799d30de815892b2674b517d0f /mrbgems/mruby-print | |
| parent | 9571a4c07e014444d6a986f6dbe8a5de908a065f (diff) | |
| download | mruby-1517d77e936ed5bbe176eb78c6f3308ef98a6047.tar.gz mruby-1517d77e936ed5bbe176eb78c6f3308ef98a6047.zip | |
Fix `puts` in `mruby-print` on no argument; 0e9bd24
`puts` should print newline when called without arguments.
Diffstat (limited to 'mrbgems/mruby-print')
| -rw-r--r-- | mrbgems/mruby-print/src/print.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mrbgems/mruby-print/src/print.c b/mrbgems/mruby-print/src/print.c index 851aee25e..df153d920 100644 --- a/mrbgems/mruby-print/src/print.c +++ b/mrbgems/mruby-print/src/print.c @@ -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(); } |
