Bug #4292

Type of rdoc in string.c

Added by Andrei Kulakov about 3 years ago. Updated almost 3 years ago.

[ruby-core:34562]
Status:Closed
Priority:Normal
Assignee:-
Category:doc
Target version:1.9.3
ruby -v:1.9.3 Backport:

Description

=begin
--- string.c (revision 30594)
+++ string.c (working copy)
@@ -2577,7 +2577,7 @@
* 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.
+ * =~ in Object returns nil.
*
* "cat o' 9 tails" =~ /\d/ #=> 7
* "cat o' 9 tails" =~ 9 #=> nil
=end

string_rdoc.patch Magnifier - fix type of rdoc (594 Bytes) Andrei Kulakov, 01/19/2011 02:32 AM

History

#1 Updated by Andrei Kulakov about 3 years ago

=begin
I apologize, I meant typo.
=end

#2 Updated by Yui NARUSE about 3 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r30654.
Andrei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • string.c (=~): documentation fix; the return value is nil when it doesn't match. patched by Andrei Kulakov =end

Also available in: Atom PDF