diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-06 06:20:43 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-06 06:20:43 +0000 |
commit | 89177a70aa4187d30ab441538ce59df19ffa9de6 (patch) | |
tree | ce8567f3821c98ccf6e730c457e345ca0ebbdb2f /string.c | |
parent | 156c5b27565773e4cab415565f1fdda2e99df443 (diff) | |
download | ruby-89177a70aa4187d30ab441538ce59df19ffa9de6.tar.gz ruby-89177a70aa4187d30ab441538ce59df19ffa9de6.tar.xz ruby-89177a70aa4187d30ab441538ce59df19ffa9de6.zip |
* string.c (rb_str_rindex): must return -1 if unmatched.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -912,6 +912,7 @@ rb_str_rindex(str, sub, pos) } s--; } + return -1; } else { return pos; |