Project

General

Profile

Actions

Bug #6553

closed

confusing use of "p " in String#start_with? documentation

Added by nathanst (Nathan Stratton Treadway) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
1.9.3
Backport:
[ruby-core:45459]

Description

The three code samples given for the starts_with?() method (for the String class) all start with "p ". This is the only code sample in that page that uses that idiom, and the examples show the values returned by the expressions using the "#=>" syntax anyway, so I'm wondering if there is any reason not to remove those "p " calls?

Updated by drbrain (Eric Hodel) almost 12 years ago

  • Category set to doc
  • Status changed from Open to Assigned
  • Assignee set to drbrain (Eric Hodel)
Actions #2

Updated by drbrain (Eric Hodel) almost 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r35975.
Nathan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • string.c (rb_str_start_with): Removed "p" from start_with? examples
    to match other String method examples. [ruby-trunk - Bug #6553]
  • string.c (rb_str_end_with): Updated end_with? to use code markup
    instead of italic.
Actions

Also available in: Atom PDF

Like0
Like0Like0