Issue #6719 has been updated by drbrain (Eric Hodel).

Priority changed from Low to Normal
Target version set to 2.0.0

I don't see the change in this patch, just corruption of the indentation of string.c.  Please configure your editor correctly:

  https://bugs.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style

I will make the change without using your patch based on the description.
----------------------------------------
Bug #6719: Documentation Error for String.sub()
https://bugs.ruby-lang.org/issues/6719#change-28349

Author: blackwatertepes (Tyler Kuhn)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: DOC
Target version: 2.0.0
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/