From 918fe2ed7c6ec12beea3b925501a6782ecccd23d Mon Sep 17 00:00:00 2001 From: Joao Fernandes Date: Mon, 30 Dec 2019 14:07:35 +0000 Subject: 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. --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object.c') 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 obj. * 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 * obj. When overriding this method, it should return a string -- cgit v1.2.3