From bdf32ff14f062b1813ccbf71f47fb301a0f47513 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 25 Aug 2007 00:43:13 +0000 Subject: * array.c (rb_ary_s_try_convert): more document description. * re.c (rb_reg_s_try_convert): typo fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- re.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 're.c') diff --git a/re.c b/re.c index 6f2f3c0e23..824d56210c 100644 --- a/re.c +++ b/re.c @@ -2042,8 +2042,8 @@ rb_check_regexp_type(VALUE re) * Returns converted regexp or nil if obj cannot be converted * for any reason. * - * IO.try_convert(/re/) # => /re/ - * IO.try_convert("re") # => nil + * Regexp.try_convert(/re/) # => /re/ + * Regexp.try_convert("re") # => nil */ static VALUE rb_reg_s_try_convert(VALUE dummy, VALUE re) -- cgit v1.2.3