summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJoao Fernandes <jfernandes@salsify.com>2019-12-30 14:07:35 +0000
committerAaron Patterson <tenderlove@github.com>2019-12-31 18:31:59 +0900
commit918fe2ed7c6ec12beea3b925501a6782ecccd23d (patch)
tree5b1e8759d0782f71ac5c5be581a7a8f61f793582 /object.c
parentdb58b4a48d7a632550d67a5c8bc4ecc37819d6c9 (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2797
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index fc2b45230d..b5514322d2 100644
--- a/object.c
+++ b/object.c
@@ -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