confusing use of "p " in String#start_with? documentation
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
- 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.