summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-12 10:08:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-12 10:08:48 +0000
commitf65719e5c66f5db60c17e87540e886e7b3f92521 (patch)
tree6db22c190b53616729c703c529d2fd2d3995c9e9 /string.c
parent26bc383ef8fd3b0a7b210bcfe0bd3bbccdee212b (diff)
* string.c (rb_str_drop_bytes): new function to drop first bytes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index fbe6ea88bb..6742e04a11 100644
--- a/string.c
+++ b/string.c
@@ -2830,7 +2830,7 @@ rb_str_aref_m(int argc, VALUE *argv, VALUE str)
}
VALUE
-rb_str_drop(VALUE str, long len)
+rb_str_drop_bytes(VALUE str, long len)
{
char *ptr = RSTRING_PTR(str);
long olen = RSTRING_LEN(str), nlen;