summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-08-18 22:40:44 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-08-18 22:40:44 +0900
commitfe77272c25f3b6d91506a51d0621275074542890 (patch)
treefcdb45b14d29516340ebc0fe5dd359f576fe15e4
parentc095736002e72d8f00c2c09b0295d2630e4375c7 (diff)
downloadmruby-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.
-rw-r--r--mrbgems/mruby-print/mrblib/print.rb2
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)