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

ruby-changes:31275

From: nobu <ko1@a...>
Date: Fri, 18 Oct 2013 16:06:48 +0900 (JST)
Subject: [ruby-changes:31275] nobu:r43354 (trunk): * gc.c (wmap_inspect_i): fix inspect format.

nobu	2013-10-18 16:06:43 +0900 (Fri, 18 Oct 2013)

  New Revision: 43354

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43354

  Log:
    * gc.c (wmap_inspect_i): fix inspect format.

  Modified files:
    trunk/gc.c
Index: gc.c
===================================================================
--- gc.c	(revision 43353)
+++ gc.c	(revision 43354)
@@ -5276,8 +5276,11 @@ wmap_inspect_i(st_data_t key, st_data_t https://github.com/ruby/ruby/blob/trunk/gc.c#L5276
     VALUE str = (VALUE)arg;
     VALUE k = (VALUE)key, v = (VALUE)val;
 
-    if (RSTRING_PTR(str)[0] != '#') {
+    if (RSTRING_PTR(str)[0] == '#') {
 	rb_str_cat2(str, ", ");
+    }
+    else {
+	rb_str_cat2(str, ": ");
 	RSTRING_PTR(str)[0] = '#';
     }
     k = SPECIAL_CONST_P(k) ? rb_inspect(k) : rb_any_to_s(k);

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

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