From fe6774d691b155df450d009f0de547bc54d3e7e9 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 27 Jun 2006 14:15:37 +0000 Subject: * string.c: RDoc update for =~ method. a patch from Alex Young . [ruby-core:08068] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 5010274cdb..ff3ded900a 100644 --- a/string.c +++ b/string.c @@ -1278,13 +1278,11 @@ rb_str_rindex_m(argc, argv, str) * str =~ obj => fixnum or nil * * Match---If obj is a Regexp, use it as a pattern to match - * against str. If obj is a String, look for it in - * str (similar to String#index). Returns the position the - * match starts, or nil if there is no match. Otherwise, invokes + * against str,and returns the position the match starts, or + * nil if there is no match. Otherwise, invokes * obj.=~, passing str as an argument. The default * =~ in Object returns false. * - * "cat o' 9 tails" =~ '\d' #=> nil * "cat o' 9 tails" =~ /\d/ #=> 7 * "cat o' 9 tails" =~ 9 #=> false */ -- cgit v1.2.3