Issue #6524 has been updated by drbrain (Eric Hodel).

Category set to DOC
Status changed from Open to Assigned
Assignee set to drbrain (Eric Hodel)
Priority changed from Low to Normal
Target version set to 2.0.0


----------------------------------------
Bug #6524: missing "#=>" in example block in Regexp class documentation
https://bugs.ruby-lang.org/issues/6524#change-26950

Author: nathanst (Nathan Stratton Treadway)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: DOC
Target version: 2.0.0
ruby -v: 1.9.3


In the Regexp class documentation, "Performance" section, the code block that starts out "# Match a string of 29 <i>a</i>s 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.

<p>
(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() ....)


-- 
http://bugs.ruby-lang.org/