diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-08-18 22:40:44 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-08-18 22:40:44 +0900 |
| commit | fe77272c25f3b6d91506a51d0621275074542890 (patch) | |
| tree | fcdb45b14d29516340ebc0fe5dd359f576fe15e4 /mrbgems | |
| parent | c095736002e72d8f00c2c09b0295d2630e4375c7 (diff) | |
| download | mruby-fe77272c25f3b6d91506a51d0621275074542890.tar.gz mruby-fe77272c25f3b6d91506a51d0621275074542890.zip | |
`Kernel#p` should return an array of arguments; fix #4083
Although the return value is not defined in ISO, it is better to behave
as CRuby does.
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-print/mrblib/print.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-print/mrblib/print.rb b/mrbgems/mruby-print/mrblib/print.rb index 38a10661b..fa83c47de 100644 --- a/mrbgems/mruby-print/mrblib/print.rb +++ b/mrbgems/mruby-print/mrblib/print.rb @@ -45,7 +45,7 @@ module Kernel __printstr__ "\n" i += 1 end - args[0] + args.__svalue end unless Kernel.respond_to?(:sprintf) |
