mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
struct.c: no rb_class_real twice
* struct.c (inspect_struct): as rb_obj_class() returns real class name, so rb_class_name is not needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
36ee0a83fe
commit
dafeb23e99
1 changed files with 1 additions and 1 deletions
2
struct.c
2
struct.c
|
@ -601,7 +601,7 @@ rb_struct_each_pair(VALUE s)
|
|||
static VALUE
|
||||
inspect_struct(VALUE s, VALUE dummy, int recur)
|
||||
{
|
||||
VALUE cname = rb_class_name(rb_obj_class(s));
|
||||
VALUE cname = rb_class_path(rb_obj_class(s));
|
||||
VALUE members, str = rb_str_new2("#<struct ");
|
||||
long i, len;
|
||||
char first = RSTRING_PTR(cname)[0];
|
||||
|
|
Loading…
Reference in a new issue