1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

doco: p outputs newline regardless of record separator

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ryan 2011-06-01 00:48:09 +00:00
parent b8f3f2d62e
commit 38de163f1e

5
io.c
View file

@ -6238,9 +6238,8 @@ rb_p(VALUE obj) /* for debug print within C code */
* p(obj1, obj2, ...) -> [obj, ...]
* p() -> nil
*
* For each object, directly writes
* _obj_.+inspect+ followed by the current output
* record separator to the program's standard output.
* For each object, directly writes _obj_.+inspect+ followed by a
* newline to the program's standard output.
*
* S = Struct.new(:name, :state)
* s = S['dave', 'TX']