diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-19 09:15:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-19 09:15:27 +0000 |
commit | 86833594ff917d578aa24a4536995fa6573300a6 (patch) | |
tree | f1abc7feb58a2faaaa14621ef75c32f114f1d193 /string.c | |
parent | ec6e3f9ec351d2e39d8113101605361664cf7494 (diff) |
* string.c (rb_str_substr): "a"[1,2] should return ""; need
rubicon upgrade.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -349,7 +349,6 @@ rb_str_substr(str, beg, len) if (len < 0) return Qnil; if (beg > RSTRING(str)->len) return Qnil; - if (beg == RSTRING(str)->len && len > 0) return Qnil; if (beg < 0) { beg += RSTRING(str)->len; if (beg < 0) return Qnil; |