=begin zzak (Zachary Scott) wrote: > I was unable to reproduce this with ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux] and rdoc 3.9.4 > > Could be an issue with ruby-doc.org? More specifically, it was a problem in ...nathanst (Nathan Stratton Treadway)
The three code samples given for the starts_with?() method (for the String class) all start with "p ". This is the only code sample in that page that uses that idiom, and the examples show the values returned by the expressions using th...nathanst (Nathan Stratton Treadway)
The references to the RDoc github commits don't show up as live links, so to save others the trouble of finding them, here are URLs for each: https://github.com/rdoc/rdoc/commit/eaf2b80c https://github.com/rdoc/rdoc/commit/0d72fc0dnathanst (Nathan Stratton Treadway)
Currently the Regexp class documentation contains the following: "<tt>=~</tt> is Ruby's basic pattern-matching operator. When one operand is a regular expression and is a string (this operator is equivalently defined by Regexp and Strin...nathanst (Nathan Stratton Treadway)
In the "Performance" section of the Regexp class documentation, the intro to the first sample code block says "Consider a string of 25 as, a d, 4 as, and a c." However, as the return value given in that sample block makes clear, t...nathanst (Nathan Stratton Treadway)
In the Performance section of the Regexp documention, it is stated that changing from Regexp.new('a?' * 29 + 'a' * 29) to Regexp.new('\A' 'a?' * 29 + 'a' * 29) speeds up the match significantly. However, '\A' 'a?' * 29 actually expands...nathanst (Nathan Stratton Treadway)
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 valu...nathanst (Nathan Stratton Treadway)
I was looking through the Regexp class documentation found at http://www.ruby-doc.org/core-1.9.3/Regexp.html ... and found a number of problems that appeared to be either display issues or typos. Most notably, throughout the entire ...nathanst (Nathan Stratton Treadway)