Project

General

Profile

Actions

Bug #6553

closed

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

Added by nathanst (Nathan Stratton Treadway) over 12 years ago. Updated over 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?

Actions

Also available in: Atom PDF

Like0
Like0Like0