From: "drbrain (Eric Hodel)" Date: 2012-06-02T06:23:48+09:00 Subject: [ruby-core:45372] [ruby-trunk - Bug #6526][Closed] minor typo in Regexp class documentation Issue #6526 has been updated by drbrain (Eric Hodel). Category set to DOC Status changed from Open to Closed Assignee set to drbrain (Eric Hodel) Priority changed from Low to Normal This is a duplicate of #5624 and was fixed by r33976 ---------------------------------------- Bug #6526: minor typo in Regexp class documentation https://bugs.ruby-lang.org/issues/6526#change-26961 Author: nathanst (Nathan Stratton Treadway) Status: Closed Priority: Normal Assignee: drbrain (Eric Hodel) Category: DOC Target version: ruby -v: 1.9.3 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, there are actually _four_ d characters in the string; it might make sense for the intro line to read "Consider a string of 25 as, 4 da pairs, and a c.", or something like that. (Also, that sample expression could be slightly simplied to: s = 'a' * 25 + 'da' * 4 + 'c' ) Nathan -- http://bugs.ruby-lang.org/