summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-14 11:38:29 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-14 11:38:29 +0000
commitf1d1363c7ef0b8ebe2d7b717f6a5a3168c966475 (patch)
treec3dca2b3ece0e1afa58374e55a0ed1f83acd1e2a /string.c
parentffc1c9878c8da4273ef412c3bc61e770e0d75799 (diff)
downloadruby-f1d1363c7ef0b8ebe2d7b717f6a5a3168c966475.tar.gz
ruby-f1d1363c7ef0b8ebe2d7b717f6a5a3168c966475.tar.xz
ruby-f1d1363c7ef0b8ebe2d7b717f6a5a3168c966475.zip
* string.c: fixed typo.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9933 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 114202844..a9adc6200 100644
--- a/string.c
+++ b/string.c
@@ -2151,7 +2151,7 @@ rb_str_clear(VALUE str)
FL_UNSET(str, STR_NOCAPA);
FL_SET(str, ELTS_SHARED);
RSTRING(str)->ptr = null_str;
- RARRAY(str)->len = 0;
+ RSTRING(str)->len = 0;
return str;
}