[前][次][番号順一覧][スレッド一覧]

ruby-changes:59566

From: Joao <ko1@a...>
Date: Tue, 31 Dec 2019 18:32:23 +0900 (JST)
Subject: [ruby-changes:59566] 918fe2ed7c (master): Fix Object#inspect documentation

https://git.ruby-lang.org/ruby.git/commit/?id=918fe2ed7c

From 918fe2ed7c6ec12beea3b925501a6782ecccd23d Mon Sep 17 00:00:00 2001
From: Joao Fernandes <jfernandes@s...>
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.

diff --git a/object.c b/object.c
index fc2b452..b551432 100644
--- a/object.c
+++ b/object.c
@@ -748,7 +748,7 @@ inspect_obj(VALUE obj, VALUE str, int recur) https://github.com/ruby/ruby/blob/trunk/object.c#L748
  *
  * 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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]