diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-04-10 05:48:43 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-04-10 05:48:43 +0000 |
| commit | 620b13d8777086b3b4da0e0a07e93b83ea38b66d (patch) | |
| tree | 6dcd08ef584fc777cf34517136d5ce3948840e45 /hash.c | |
| parent | 0453f53db62f1321492288d1c904aade9bb0fa3e (diff) | |
| download | ruby-620b13d8777086b3b4da0e0a07e93b83ea38b66d.tar.gz ruby-620b13d8777086b3b4da0e0a07e93b83ea38b66d.tar.xz ruby-620b13d8777086b3b4da0e0a07e93b83ea38b66d.zip | |
2000-04-10
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
| -rw-r--r-- | hash.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -639,14 +639,14 @@ inspect_i(key, value, str) if (key == Qundef) return ST_CONTINUE; if (RSTRING(str)->len > 1) { - rb_str_cat(str, ", ", 2); + rb_str_cat2(str, ", "); } str2 = rb_inspect(key); - rb_str_cat(str, RSTRING(str2)->ptr, RSTRING(str2)->len); + rb_str_append(str, str2); OBJ_INFECT(str, str2); - rb_str_cat(str, "=>", 2); + rb_str_cat2(str, "=>"); str2 = rb_inspect(value); - rb_str_cat(str, RSTRING(str2)->ptr, RSTRING(str2)->len); + rb_str_append(str, str2); OBJ_INFECT(str, str2); return ST_CONTINUE; @@ -660,7 +660,7 @@ inspect_hash(hash) str = rb_str_new2("{"); st_foreach(RHASH(hash)->tbl, inspect_i, str); - rb_str_cat(str, "}", 1); + rb_str_cat2(str, "}"); OBJ_INFECT(str, hash); return str; |
