From: Jarno Lamberg Date: 2011-11-16T05:58:16+09:00 Subject: [ruby-core:41066] [ruby-trunk - Bug #5624] Mismatch between code example and its description in text in Regexp documentation Issue #5624 has been updated by Jarno Lamberg. I committed the change to GitHub and made a pull request, too, as I was not sure which way would work better. The link to the pull request is: https://github.com/ruby/ruby/pull/57 ---------------------------------------- Bug #5624: Mismatch between code example and its description in text in Regexp documentation http://redmine.ruby-lang.org/issues/5624 Author: Jarno Lamberg Status: Open Priority: Normal Assignee: Eric Hodel Category: DOC Target version: ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux] I found that in Regexp.html (doc/re.rdoc) under the heading Performance there is the description: "Consider a string of 25 as, a d, 4 as, and a c." with a code example: s = 'a' * 25 + 'd' 'a' * 4 + 'c' #=> "aaaaaaaaaaaaaaaaaaaaaaaaadadadadac" The code example doesn't match its description. I fixed that with the attached patch. -- http://redmine.ruby-lang.org