Bug #6719
closed
Documentation Error for String.sub()
Added by blackwatertepes (Tyler Kuhn) over 12 years ago.
Updated over 12 years ago.
Description
"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."
Files
- Status changed from Open to Assigned
I think this needs to be resubmitted without all the reformatting.
- Priority changed from 3 to Normal
- Target version set to 2.0.0
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r36506.
Tyler, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- string.c (rb_str_sub): Fixed wording of documentation to match the
replacement operation. Minor cleanup of markup. [Bug #6719]
- string.c (rb_str_sub_bang): Minor wording change for clarity, minor
cleanup of markup.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0