Bug #6524

missing "#=>" in example block in Regexp class documentation

Added by Nathan Stratton Treadway over 2 years ago. Updated over 2 years ago.

[ruby-core:45358]
Status:Closed
Priority:Normal
Assignee:Eric Hodel
ruby -v:1.9.3 Backport:

Description

In the Regexp class documentation, "Performance" section, the code block that starts out "# Match a string of 29 as against a pattern of 29 optional" seems to be the only block of sample code on the page which would return a value but that doesn't include a "#=>" in the sample block to show what is returned.

(Also, it might be a little easier for readers to concentrate on the point of the discussion here if that example was as close as possible to the following one, rather having one use use =~ while the other uses .match() ....)

Associated revisions

Revision 35860
Added by Eric Hodel over 2 years ago

  • doc/re.rdoc (Performance): Removed useless sample output from final performance example and switched from #match to #=~ for consistency. [ruby-trunk - Bug #6524]

Revision 35860
Added by Eric Hodel over 2 years ago

  • doc/re.rdoc (Performance): Removed useless sample output from final performance example and switched from #match to #=~ for consistency. [ruby-trunk - Bug #6524]

History

#1 Updated by Eric Hodel over 2 years ago

  • Category set to doc
  • Status changed from Open to Assigned
  • Assignee set to Eric Hodel
  • Priority changed from Low to Normal
  • Target version set to 2.0.0

#2 Updated by Eric Hodel over 2 years ago

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

This issue was solved with changeset r35860.
Nathan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • doc/re.rdoc (Performance): Removed useless sample output from final performance example and switched from #match to #=~ for consistency. [ruby-trunk - Bug #6524]

Also available in: Atom PDF