summaryrefslogtreecommitdiff
path: root/ext/strscan
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-14 03:23:20 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-14 03:23:20 (GMT)
commit43d414868234db224c3dbbeb72d41d3a130f662c (patch)
tree09d4b5b8dc799a9cdcd5cbb1ea61593214473825 /ext/strscan
parent747e3c73e02a510f302116a491bc2359e156c407 (diff)
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
Diffstat (limited to 'ext/strscan')
-rw-r--r--ext/strscan/strscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c
index a62616c..ec983e1 100644
--- a/ext/strscan/strscan.c
+++ b/ext/strscan/strscan.c
@@ -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);
}