Project

General

Profile

Bug #6719

Documentation Error for String.sub()

Added by Tyler Kuhn about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
[ruby-core:46313]

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."

Associated revisions

Revision 36506
Added by Eric Hodel about 4 years ago

  • 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.

Revision 36506
Added by Eric Hodel about 4 years ago

  • 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.

Revision 36506
Added by Eric Hodel about 4 years ago

  • 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.

History

#1 [ruby-core:46476] Updated by Yusuke Endoh about 4 years ago

  • Status changed from Open to Assigned

#2 [ruby-core:46517] Updated by Oscar Del Ben about 4 years ago

I think this needs to be resubmitted without all the reformatting.

#3 [ruby-core:46684] Updated by Eric Hodel about 4 years ago

  • Priority changed from 3 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.

#4 Updated by Eric Hodel about 4 years ago

  • 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