1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

strscan.c: fix typo

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-01-14 03:23:20 +00:00
parent 747e3c73e0
commit 43d4148682

View file

@ -1198,7 +1198,7 @@ inspect1(struct strscanner *p)
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);
}