Issue #6719 has been updated by oscardelben (Oscar Del Ben). I think this needs to be resubmitted without all the reformatting. ---------------------------------------- Bug #6719: Documentation Error for String.sub() https://bugs.ruby-lang.org/issues/6719#change-28157 Author: blackwatertepes (Tyler Kuhn) Status: Assigned Priority: Low Assignee: drbrain (Eric Hodel) Category: DOC Target version: ruby -v: 1.9.2 "Returns a copy of str with the first occurrence of pattern substituted for the second argument." should be "Returns a copy of str with the first occurrence of pattern replaced by the second argument." -- http://bugs.ruby-lang.org/