Issue #6719 has been reported by blackwatertepes (Tyler Kuhn).

----------------------------------------
Bug #6719: Documentation Error for String.sub()
https://bugs.ruby-lang.org/issues/6719

Author: blackwatertepes (Tyler Kuhn)
Status: Open
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/