Actions
Bug #3497
closed[Docs; Patch] Mistakes & Omissions for String#{sub,gsub}
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-06-28 trunk 28455) [i686-linux]
Backport:
Description
=begin
The current RDoc states that String#sub returns an Enumerator without a block, when in fact it is String#gsub that behaves this way. Neither method is documented as accepting a Hash for the second argument. This patch is my attempt to fix both inaccuracies, and tweak the surrounding prose. It looks awful on the terminal with ri
due to the line wrapping, but I don't believe that's my fault.
=end
Files
Actions
Like0
Like0