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

Fix Object#inspect documentation

Starting from ruby 2.7.0, there's no longer a connection between the hexadecimal
number that #inspect shows and the object's ID.
This commit is contained in:
Joao Fernandes 2019-12-30 14:07:35 +00:00 committed by Aaron Patterson
parent db58b4a48d
commit 918fe2ed7c
Notes: git 2019-12-31 18:32:23 +09:00

View file

@ -748,7 +748,7 @@ inspect_obj(VALUE obj, VALUE str, int recur)
*
* Returns a string containing a human-readable representation of <i>obj</i>.
* The default #inspect shows the object's class name, an encoding of
* the object id, and a list of the instance variables and their
* its memory address, and a list of the instance variables and their
* values (by calling #inspect on each of them). User defined classes
* should override this method to provide a better representation of
* <i>obj</i>. When overriding this method, it should return a string