From 76210570540cf5065992037cc496dcf1c066b479 Mon Sep 17 00:00:00 2001 From: ocean Date: Tue, 14 Feb 2006 11:38:29 +0000 Subject: [PATCH] * string.c: fixed typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string.c b/string.c index 1142028441..a9adc6200a 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; }