Project

General

Profile

Bug #6553

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

Added by nathanst (Nathan Stratton Treadway) about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
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) about 8 years ago

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

Updated by drbrain (Eric Hodel) about 8 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.

Also available in: Atom PDF