From b20521ddc595cfbf9b0d95c54da42151bcef4d96 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 21 Oct 2009 10:32:53 +0000 Subject: * object.c (rb_obj_inspect): fixed rdoc about the case that to_s is called. [ruby-core:24425] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index 6dcd94740d..fc2c23716e 100644 --- a/object.c +++ b/object.c @@ -367,14 +367,13 @@ inspect_obj(VALUE obj, VALUE str, int recur) * obj.inspect => string * * Returns a string containing a human-readable representation of - * obj. If not overridden, uses the to_s method to - * generate the string. + * obj. If not overridden and no instance variables, uses the + * to_s method to generate the string. * * [ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]" * Time.new.inspect #=> "2008-03-08 19:43:39 +0900" */ - static VALUE rb_obj_inspect(VALUE obj) { -- cgit v1.2.3