`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.
parent c0957360
...@@ -45,7 +45,7 @@ module Kernel ...@@ -45,7 +45,7 @@ module Kernel
__printstr__ "\n" __printstr__ "\n"
i += 1 i += 1
end end
args[0] args.__svalue
end end
unless Kernel.respond_to?(:sprintf) unless Kernel.respond_to?(:sprintf)
......
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