ruby/ruby — pull request #144 by blackwatertepes (2012-07-10 22:27:09+00:00)
Title: altered documentation for String.sub() where verbage was incorrect

The first line...

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.

"substituted for", implies that the pattern will replace the second argument, which is incorrect.