Project

General

Profile

Actions

Bug #3497

closed

[Docs; Patch] Mistakes & Omissions for String#{sub,gsub}

Added by runpaint (Run Paint Run Run) almost 14 years ago. Updated almost 13 years ago.

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

string-doc.patch (7.17 KB) string-doc.patch runpaint (Run Paint Run Run), 06/28/2010 06:36 PM
Actions #1

Updated by marcandre (Marc-Andre Lafortune) almost 14 years ago

  • Status changed from Open to Closed

=begin
Applied (with small modifications) in r28492 and r28494 .

Thanks!
=end

Actions

Also available in: Atom PDF

Like0
Like0