summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-07 06:36:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-07 06:36:53 +0000
commitae0936a172c7579a351c9107b95d58df6312da18 (patch)
treed6a01a91f9cea219701a8f29831ff2ddefc1b2c0
parent30e7d0c6efccaae8c935d7e5269e9cd6fe1154ab (diff)
downloadruby-ae0936a172c7579a351c9107b95d58df6312da18.tar.gz
ruby-ae0936a172c7579a351c9107b95d58df6312da18.tar.xz
ruby-ae0936a172c7579a351c9107b95d58df6312da18.zip
re-indented.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 3dca59b6d..99813c969 100644
--- a/string.c
+++ b/string.c
@@ -848,7 +848,7 @@ rb_str_index(str, sub, offset)
if (RSTRING(str)->len - offset < RSTRING(sub)->len) return -1;
if (RSTRING(sub)->len == 0) return offset;
pos = rb_memsearch(RSTRING(sub)->ptr, RSTRING(sub)->len,
- RSTRING(str)->ptr+offset, RSTRING(str)->len-offset);
+ RSTRING(str)->ptr+offset, RSTRING(str)->len-offset);
if (pos < 0) return pos;
return pos + offset;
}