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

ruby-changes:32513

From: nobu <ko1@a...>
Date: Tue, 14 Jan 2014 12:23:24 +0900 (JST)
Subject: [ruby-changes:32513] nobu:r44592 (trunk): strscan.c: fix typo

nobu	2014-01-14 12:23:20 +0900 (Tue, 14 Jan 2014)

  New Revision: 44592

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

  Log:
    strscan.c: fix typo
    
    * ext/strscan/strscan.c (inspect1): fix typo, rb_str_cat() instead
      of rb_str_cat2().

  Modified files:
    trunk/ext/strscan/strscan.c
Index: ext/strscan/strscan.c
===================================================================
--- ext/strscan/strscan.c	(revision 44591)
+++ ext/strscan/strscan.c	(revision 44592)
@@ -1198,7 +1198,7 @@ inspect1(struct strscanner *p) https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L1198
 	str = rb_str_new(0, 0);
 	len = p->curr;
     }
-    rb_str_cat2(str, CURPTR(p) - len, len);
+    rb_str_cat(str, CURPTR(p) - len, len);
     return rb_str_dump(str);
 }
 

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

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